mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 16:50:55 +08:00
Some renaming so that future features will fit in better; If the architecture provides its only system logging (via CONFIG_ARCH_SYSLOG), then syslog_initialize() is stubbed out
This commit is contained in:
@@ -97,15 +97,25 @@ extern "C"
|
||||
/****************************************************************************
|
||||
* Public Function Prototypes
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Name: syslog_initialize
|
||||
*
|
||||
* Description:
|
||||
* One power up, the SYSLOG facility is non-existent or limited to very
|
||||
* low-level output. This function is called later in the intialization
|
||||
* low-level output. This function is called later in the initialization
|
||||
* sequence after full driver support has been initialized. It installs
|
||||
* the configured SYSLOG drivers and enables full SYSLOGing capability.
|
||||
*
|
||||
* This function performs these basic operations:
|
||||
*
|
||||
* - Initialize the SYSLOG device
|
||||
* - Call syslog_channel() to begin using that device.
|
||||
*
|
||||
* If CONFIG_ARCH_SYSLOG is selected, then the architecture-specifica
|
||||
* logic will provide its own SYSLOG device initialize which must include
|
||||
* as a minimum a call to syslog_channel() to use the device.
|
||||
*
|
||||
* Input Parameters:
|
||||
* None
|
||||
*
|
||||
@@ -115,7 +125,11 @@ extern "C"
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef CONFIG_ARCH_SYSLOG
|
||||
int syslog_initialize(void);
|
||||
#else
|
||||
# define syslog_initialize()
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
* Name: syslog_putc
|
||||
|
||||
Reference in New Issue
Block a user