This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new 7887d9c6d0 syslog: allow microsecond on user specific time format
7887d9c6d0 is described below

commit 7887d9c6d0c86b37c2ecfadea02a396490b61fa7
Author: buxiasen <buxia...@xiaomi.com>
AuthorDate: Tue Dec 10 16:15:23 2024 +0800

    syslog: allow microsecond on user specific time format
    
    FORMAT_MICROSECOND depends on format is not required.
    
    Signed-off-by: buxiasen <buxia...@xiaomi.com>
---
 drivers/syslog/Kconfig | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/drivers/syslog/Kconfig b/drivers/syslog/Kconfig
index 68924b986f..7a5db1cee9 100644
--- a/drivers/syslog/Kconfig
+++ b/drivers/syslog/Kconfig
@@ -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"

Reply via email to