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:
parent
befad07fd4
commit
3d6a5a2d0d
@ -200,7 +200,7 @@ int nx_vsyslog(int priority, FAR const IPTR char *fmt, FAR va_list *ap)
|
|||||||
#if defined(CONFIG_SYSLOG_PREFIX)
|
#if defined(CONFIG_SYSLOG_PREFIX)
|
||||||
/* Prepend the prefix, if available */
|
/* 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
|
#endif
|
||||||
|
|
||||||
#if CONFIG_TASK_NAME_SIZE > 0 && defined(CONFIG_SYSLOG_PROCESS_NAME)
|
#if CONFIG_TASK_NAME_SIZE > 0 && defined(CONFIG_SYSLOG_PROCESS_NAME)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user