projects
/
fw
/
altos
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b446d96
)
altos/kernel: Use ao_put_string for syntax error message
author
Keith Packard
<keithp@keithp.com>
Sun, 7 Jan 2018 19:47:57 +0000
(11:47 -0800)
committer
Keith 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
patch
|
blob
|
history
diff --git
a/src/kernel/ao_cmd.c
b/src/kernel/ao_cmd.c
index 405fd126dc36a3ce05308096b4f698263174c877..7bb4654e775e472d486fbf4985989b2c8d05614d 100644
(file)
--- a/
src/kernel/ao_cmd.c
+++ b/
src/kernel/ao_cmd.c
@@
-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;