mirror of
https://github.com/apache/nuttx.git
synced 2026-05-27 19:36:35 +08:00
Update some cmoments
This commit is contained in:
@@ -62,6 +62,10 @@
|
|||||||
* equivalent to vlowsyslog() except that the pre-process priority filtering
|
* equivalent to vlowsyslog() except that the pre-process priority filtering
|
||||||
* has already been performed and, hence, there is no priority argument.
|
* 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.
|
||||||
|
*
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
int _lowvsyslog(FAR const IPTR char *fmt, FAR va_list *ap)
|
int _lowvsyslog(FAR const IPTR char *fmt, FAR va_list *ap)
|
||||||
|
|||||||
@@ -60,6 +60,10 @@
|
|||||||
* equivalent to vsyslog() except that the pre-process priority filtering
|
* equivalent to vsyslog() except that the pre-process priority filtering
|
||||||
* has already been performed and, hence, there is no priority argument.
|
* 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.
|
||||||
|
*
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
int _vsyslog(FAR const IPTR char *fmt, FAR va_list *ap)
|
int _vsyslog(FAR const IPTR char *fmt, FAR va_list *ap)
|
||||||
|
|||||||
@@ -214,6 +214,10 @@ int syslog_flush(void);
|
|||||||
* equivalent to vsyslog() except that the pre-process priority filtering
|
* equivalent to vsyslog() except that the pre-process priority filtering
|
||||||
* has already been performed and, hence, there is no priority argument.
|
* 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.
|
||||||
|
*
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
int _vsyslog(FAR const IPTR char *src, FAR va_list *ap);
|
int _vsyslog(FAR const IPTR char *src, FAR va_list *ap);
|
||||||
|
|||||||
@@ -78,7 +78,12 @@ int lowvsyslog(int priority, FAR const IPTR char *fmt, va_list ap)
|
|||||||
|
|
||||||
if ((g_syslog_mask & LOG_MASK(priority)) != 0)
|
if ((g_syslog_mask & LOG_MASK(priority)) != 0)
|
||||||
{
|
{
|
||||||
/* Perform the _lowvsyslog system call */
|
/* Perform the _lowvsyslog system call.
|
||||||
|
*
|
||||||
|
* 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.
|
||||||
|
*/
|
||||||
|
|
||||||
ret = _lowvsyslog(fmt, &ap);
|
ret = _lowvsyslog(fmt, &ap);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -67,7 +67,12 @@ int vsyslog(int priority, FAR const IPTR char *fmt, va_list ap)
|
|||||||
|
|
||||||
if ((g_syslog_mask & LOG_MASK(priority)) != 0)
|
if ((g_syslog_mask & LOG_MASK(priority)) != 0)
|
||||||
{
|
{
|
||||||
/* Yes.. lPerform the _vsyslog system cal */
|
/* Yes.. lPerform the _vsyslog system call.
|
||||||
|
*
|
||||||
|
* 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.
|
||||||
|
*/
|
||||||
|
|
||||||
ret = _vsyslog(fmt, &ap);
|
ret = _vsyslog(fmt, &ap);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user