diff options
author | Jerome Forissier <jerome.forissier@linaro.org> | 2017-08-21 10:22:37 +0200 |
---|---|---|
committer | Jérôme Forissier <jerome.forissier@linaro.org> | 2017-08-21 18:22:34 +0200 |
commit | 6246cc9d957c1bfca0989b970e98ded93b324419 (patch) | |
tree | 76af018580de178674dd85fa3b680e289f340bd0 /lib/libutee | |
parent | b0c596ac807f3e62a969434df0e5524faf4cf32c (diff) |
libutee: puts(): add trailing newline
puts() should print the supplied string and a trailing newline. Fix it
accordingly.
Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org>
Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
Diffstat (limited to 'lib/libutee')
-rw-r--r-- | lib/libutee/trace_ext.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libutee/trace_ext.c b/lib/libutee/trace_ext.c index ae60ed7f..f6fcd291 100644 --- a/lib/libutee/trace_ext.c +++ b/lib/libutee/trace_ext.c @@ -73,8 +73,10 @@ int printf(const char *fmt, ...) int puts(const char *str) { - if (trace_get_level() >= TRACE_PRINTF_LEVEL) + if (trace_get_level() >= TRACE_PRINTF_LEVEL) { trace_ext_puts(str); + trace_ext_puts("\n"); + } return 1; } |