diff --git a/sw/third_party/printf.c b/sw/third_party/printf.c index 245ac1b..4af20f4 100644 --- a/sw/third_party/printf.c +++ b/sw/third_party/printf.c @@ -256,8 +256,13 @@ void tfp_sprintf(char *s, char *fmt, ...) } int puts(const char *s) { - while (*s++) - stdout_putf(stdout_putp, *s); + puts_noendl(s); stdout_putf(stdout_putp, '\n'); return 1; +} + +int puts_noendl(const char *s) { + while (*s) + stdout_putf(stdout_putp, *s++); + return 1; } \ No newline at end of file