mirror of
https://github.com/apache/nuttx.git
synced 2026-05-26 10:46:28 +08:00
syslog: Add [] around the prefix like others
make the output format consistent Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
@@ -200,7 +200,7 @@ int nx_vsyslog(int priority, FAR const IPTR char *fmt, FAR va_list *ap)
|
||||
#if defined(CONFIG_SYSLOG_PREFIX)
|
||||
/* Prepend the prefix, if available */
|
||||
|
||||
ret += lib_sprintf(&stream.public, "%s", CONFIG_SYSLOG_PREFIX_STRING);
|
||||
ret += lib_sprintf(&stream.public, "[%s] ", CONFIG_SYSLOG_PREFIX_STRING);
|
||||
#endif
|
||||
|
||||
#if CONFIG_TASK_NAME_SIZE > 0 && defined(CONFIG_SYSLOG_PROCESS_NAME)
|
||||
|
||||
Reference in New Issue
Block a user