MCPcopy Create free account
hub / github.com/apache/nuttx / syslog_initialize

Function syslog_initialize

drivers/syslog/syslog_initialize.c:70–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68 ****************************************************************************/
69
70int syslog_initialize(void)
71{
72 int ret = OK;
73
74#if defined(CONFIG_SYSLOG_CHAR)
75 /* Enable use of a character device as the SYSLOG device */
76
77 syslog_dev_channel();
78#elif defined(CONFIG_SYSLOG_CONSOLE)
79 /* Use the console device as the SYSLOG device */
80
81 syslog_console_channel();
82#endif
83
84#ifdef CONFIG_RAMLOG_SYSLOG
85 ramlog_syslog_register();
86#endif
87
88#ifdef CONFIG_SYSLOG_CHARDEV
89 syslog_register();
90#endif
91
92#ifdef CONFIG_SYSLOG_RPMSG
93 syslog_rpmsg_init();
94#endif
95
96#ifdef CONFIG_SYSLOG_RPMSG_SERVER
97 syslog_rpmsg_server_init();
98#endif
99
100 return ret;
101}
102
103#endif /* CONFIG_ARCH_SYSLOG */

Callers 1

drivers_initializeFunction · 0.85

Calls 6

syslog_dev_channelFunction · 0.85
syslog_console_channelFunction · 0.85
ramlog_syslog_registerFunction · 0.85
syslog_registerFunction · 0.85
syslog_rpmsg_initFunction · 0.85
syslog_rpmsg_server_initFunction · 0.85

Tested by

no test coverage detected