summaryrefslogtreecommitdiff
path: root/usr.bin/oasm
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/oasm')
-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);