diff options
author | Jari Vetoniemi <mailroxas@gmail.com> | 2018-02-27 14:22:05 +0200 |
---|---|---|
committer | Jari Vetoniemi <mailroxas@gmail.com> | 2018-02-27 14:22:05 +0200 |
commit | 20ff7bdfeeb14ca1c74c466942fc5558aa267300 (patch) | |
tree | a575c27e92931674d838d8024d17800ba4d77714 /src | |
parent | e3e744ef51dcee7fa364bc70bafb251e6c2f88d6 (diff) |
liblog: Output newline
Diffstat (limited to 'src')
-rw-r--r-- | src/liblog.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/liblog.c b/src/liblog.c index 392e58c..ce4a6b2 100644 --- a/src/liblog.c +++ b/src/liblog.c @@ -4,8 +4,10 @@ int __android_log_vprint(int prio, const char *tag, const char *fmt, va_list ap) { - printf("(%d) %s :: ", prio, tag); - return vprintf(fmt, ap); + int ret = printf("(%d) %s :: ", prio, tag); + ret += vprintf(fmt, ap); + ret += (puts("") != EOF); + return ret; } int |