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:
Xiang Xiao 2021-12-10 15:43:10 +08:00 committed by Xiang Xiao
parent befad07fd4
commit 3d6a5a2d0d
1 changed files with 1 additions and 1 deletions

View File

@ -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)