drivers/syslog: syslog_initialize initialize dev/syslog too and call syslog to add the prefix and timestamp

This commit is contained in:
Xiang Xiao
2018-11-09 08:49:07 -06:00
committed by Gregory Nutt
parent f579c43754
commit 7828dff2ea
4 changed files with 28 additions and 20 deletions
+7
View File
@@ -109,6 +109,13 @@ int syslog_initialize(enum syslog_init_e phase)
#endif
#ifdef CONFIG_SYSLOG_CHARDEV
if (phase == SYSLOG_INIT_EARLY)
{
syslog_register();
}
#endif
return ret;
}