1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

improve log output

This commit is contained in:
Steffen Vogel 2017-06-17 18:50:51 +02:00
parent e8a5a431a3
commit 31cbd1b362

View file

@ -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);
}