init: Add a (user) prefix to logs when not running as system init
This commit is contained in:
parent
9c36ef6e9e
commit
16223b2f53
@ -48,6 +48,8 @@ static void do_log(const char* format, ...)
|
||||
va_list ap;
|
||||
va_start(ap, format);
|
||||
|
||||
if (!g_is_system) fprintf(g_init_log, "(user) ");
|
||||
|
||||
if (g_init_log) vfprintf(g_init_log, format, ap);
|
||||
|
||||
va_end(ap);
|
||||
@ -58,6 +60,8 @@ static void do_errlog(const char* format, ...)
|
||||
va_list ap;
|
||||
va_start(ap, format);
|
||||
|
||||
fprintf(stderr, "(user) ");
|
||||
|
||||
vfprintf(stderr, format, ap);
|
||||
|
||||
va_end(ap);
|
||||
|
Loading…
Reference in New Issue
Block a user