mirror of
https://github.com/apache/nuttx.git
synced 2026-06-07 09:18:00 +08:00
drivers/syslog: syslog_initialize initialize dev/syslog too and call syslog to add the prefix and timestamp
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user