summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2025-07-23 18:31:53 -0400
committerIan Moffett <ian@osmora.org>2025-07-23 18:31:53 -0400
commit5ce067ea82c5d54cbe4cff9ddd0a4dcc7e5f7201 (patch)
tree6e7ea8d89d1cabcca9686056c7d3df0e5b7cd061 /usr.bin
parent2a7ad917c496354cd6f99bd876db6c1e72553662 (diff)
oasm: parse: Use oasm_err instead of printf()
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/oasm/parse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/oasm/parse.c b/usr.bin/oasm/parse.c
index e288d6e..673fbcd 100644
--- a/usr.bin/oasm/parse.c
+++ b/usr.bin/oasm/parse.c
@@ -182,7 +182,7 @@ parse_tok(struct oasm_state *state, struct oasm_token *tok)
case TT_IMM:
p = tokstr[state->last];
if (!tok_is_xreg(state->last)) {
- printf("expected X<n> but got %s\n", p);
+ oasm_err("expected X<n> but got %s\n", p);
return -1;
}
emit_osmx64(&emit_state, tok);