mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 08:36:24 +08:00
Add a hook before the existing syslog_initialize() call; rename the old syslog_initialize() to syslog_dev_initialize().
This commit is contained in:
@@ -67,7 +67,7 @@
|
||||
* CONFIG_SYSLOG_CHAR - Enable the generic character device for the SYSLOG.
|
||||
* The full path to the SYSLOG device is provided by CONFIG_SYSLOG_DEVPATH.
|
||||
* A valid character device must exist at this path. It will by opened
|
||||
* by syslog_initialize.
|
||||
* by logic in syslog_initialize() based on the current configuration.
|
||||
*
|
||||
* NOTE: No more than one SYSLOG device should be configured.
|
||||
*/
|
||||
@@ -101,17 +101,21 @@ extern "C"
|
||||
* Name: syslog_initialize
|
||||
*
|
||||
* Description:
|
||||
* Initialize to use the character device (or file) at
|
||||
* CONFIG_SYSLOG_DEVPATH as the SYSLOG sink.
|
||||
* One power up, the SYSLOG facility is non-existent or limited to very
|
||||
* low-level output. This function is called later in the intialization
|
||||
* sequence after full driver support has been initialized. It installs
|
||||
* the configured SYSLOG drivers and enables full SYSLOGing capability.
|
||||
*
|
||||
* NOTE that this implementation excludes using a network connection as
|
||||
* SYSLOG device. That would be a good extension.
|
||||
* Input Parameters:
|
||||
* None
|
||||
*
|
||||
* Returned Value:
|
||||
* Zero (OK) is returned on success; a negated errno value is returned on
|
||||
* any failure.
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
#ifdef CONFIG_SYSLOG_CHAR
|
||||
int syslog_initialize(void);
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
* Name: syslog_putc
|
||||
|
||||
Reference in New Issue
Block a user