From 20ff7bdfeeb14ca1c74c466942fc5558aa267300 Mon Sep 17 00:00:00 2001 From: Jari Vetoniemi Date: Tue, 27 Feb 2018 14:22:05 +0200 Subject: liblog: Output newline --- src/liblog.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src') 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 -- cgit v1.2.3-70-g09d2