summaryrefslogtreecommitdiff
path: root/src/liblog.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/liblog.c')
-rw-r--r--src/liblog.c6
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