mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 08:36:24 +08:00
Remove some last traces of lowvsyslog that were missed; Add a SYSLOG emergency channel for handling assertion output more cleanly
This commit is contained in:
@@ -371,6 +371,24 @@ void lib_nulloutstream(FAR struct lib_outstream_s *nulloutstream);
|
||||
|
||||
void syslogstream(FAR struct lib_outstream_s *stream);
|
||||
|
||||
/****************************************************************************
|
||||
* Name: emergstream
|
||||
*
|
||||
* Description:
|
||||
* Initializes a stream for use with the configured emergency syslog
|
||||
* interface. Only accessible from with the OS SYSLOG logic.
|
||||
*
|
||||
* Input parameters:
|
||||
* stream - User allocated, uninitialized instance of struct
|
||||
* lib_lowoutstream_s to be initialized.
|
||||
*
|
||||
* Returned Value:
|
||||
* None (User allocated instance initialized).
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
void emergstream(FAR struct lib_outstream_s *stream);
|
||||
|
||||
/****************************************************************************
|
||||
* Name: lib_noflush
|
||||
*
|
||||
|
||||
@@ -219,16 +219,15 @@ int syslog_flush(void);
|
||||
*
|
||||
* Description:
|
||||
* _vsyslog() handles the system logging system calls. It is functionally
|
||||
* equivalent to vsyslog() except that the per-process priority filtering
|
||||
* has already been performed and, hence, there is no priority argument.
|
||||
*
|
||||
* NOTE: The va_list parameter is passed by reference. That is because
|
||||
* the va_list is a structure in some compilers and passing of structures
|
||||
* in the NuttX sycalls does not work.
|
||||
* equivalent to vsyslog() except that (1) the per-process priority
|
||||
* filtering has already been performed and the va_list parameter is
|
||||
* passed by reference. That is because the va_list is a structure in
|
||||
* some compilers and passing of structures in the NuttX sycalls does
|
||||
* not work.
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
int _vsyslog(FAR const IPTR char *src, FAR va_list *ap);
|
||||
int _vsyslog(int priority, FAR const IPTR char *src, FAR va_list *ap);
|
||||
|
||||
#undef EXTERN
|
||||
#ifdef __cplusplus
|
||||
|
||||
Reference in New Issue
Block a user