syslog: allow microsecond on user specific time format

FORMAT_MICROSECOND depends on format is not required.

Signed-off-by: buxiasen <buxiasen@xiaomi.com>
This commit is contained in:
buxiasen 2024-12-10 16:15:23 +08:00 committed by Xiang Xiao
parent 2f8d78ef64
commit 7887d9c6d0

View file

@ -170,8 +170,10 @@ config SYSLOG_TIMESTAMP_FORMAT
config SYSLOG_TIMESTAMP_FORMAT_MICROSECOND
bool "Append microseconds after seconds"
default y
depends on SYSLOG_TIMESTAMP_FORMAT = "%d/%m/%y %H:%M:%S"
default y if SYSLOG_TIMESTAMP_FORMAT = "%d/%m/%y %H:%M:%S"
---help---
Append microseconds after seconds in syslog timestamp.
Suggest SYSLOG_TIMESTAMP_FORMAT end with %S.
config SYSLOG_TIMESTAMP_BUFFER
int "Formatted timestamp buffer size"