altos/kernel: Use ao_put_string for syntax error message
authorKeith Packard <keithp@keithp.com>
Sun, 7 Jan 2018 19:47:57 +0000 (11:47 -0800)
committerKeith Packard <keithp@keithp.com>
Sun, 7 Jan 2018 19:47:57 +0000 (11:47 -0800)
Avoid using puts, which can be a large library function.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/kernel/ao_cmd.c

index 405fd126dc36a3ce05308096b4f698263174c877..7bb4654e775e472d486fbf4985989b2c8d05614d 100644 (file)
@@ -355,7 +355,7 @@ report(void)
        switch(ao_cmd_status) {
        case ao_cmd_lex_error:
        case ao_cmd_syntax_error:
-               puts("Syntax error");
+               ao_put_string("Syntax error\n");
                ao_cmd_status = 0;
        default:
                break;