mirror of
https://github.com/apache/nuttx.git
synced 2026-05-13 10:38:40 +08:00
Re-arranged syslog fields.
This commit is contained in:
committed by
Xiang Xiao
parent
eb2937003b
commit
eabb2fbf38
@@ -172,10 +172,6 @@ int nx_vsyslog(int priority, FAR const IPTR char *fmt, FAR va_list *ap)
|
||||
ret = 0;
|
||||
#endif
|
||||
|
||||
#if defined(CONFIG_SYSLOG_PRIORITY)
|
||||
ret += lib_sprintf(&stream.public, "[%6s] ", g_priority_str[priority]);
|
||||
#endif
|
||||
|
||||
#if defined(CONFIG_SYSLOG_PROCESSID)
|
||||
/* Pre-pend the Process ID */
|
||||
|
||||
@@ -220,6 +216,12 @@ int nx_vsyslog(int priority, FAR const IPTR char *fmt, FAR va_list *ap)
|
||||
}
|
||||
#endif
|
||||
|
||||
#if defined(CONFIG_SYSLOG_PRIORITY)
|
||||
/* Pre-pend the message priority. */
|
||||
|
||||
ret += lib_sprintf(&stream.public, "[%6s] ", g_priority_str[priority]);
|
||||
#endif
|
||||
|
||||
#if defined(CONFIG_SYSLOG_PREFIX)
|
||||
/* Pre-pend the prefix, if available */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user