From 31cbd1b362a627d847eddf6ba4bcb13e2d90782b Mon Sep 17 00:00:00 2001 From: Steffen Vogel Date: Sat, 17 Jun 2017 18:50:51 +0200 Subject: [PATCH] improve log output --- lib/log.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/log.c b/lib/log.c index 70347f88b..ad2f02b02 100644 --- a/lib/log.c +++ b/lib/log.c @@ -232,7 +232,7 @@ void log_vprint(struct log *l, const char *lvl, const char *fmt, va_list ap) #ifdef ENABLE_OPAL_ASYNC OpalPrint("VILLASnode: %s\n", buf); #endif - fprintf(l->file ? l->file : stderr, "%s\n", buf); + fprintf(l->file ? l->file : stderr, "\33[2K\r%s\n", buf); free(buf); }