This is an automated email from the ASF dual-hosted git repository.
xiaoxiang781216 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 69c45c83a3d Kconfig: Allow the scheduler errors and warnings with
syslog time stamps.
69c45c83a3d is described below
commit 69c45c83a3de88012da9a26ab83f1419c37d4b19
Author: Marco Casaroli <[email protected]>
AuthorDate: Thu Oct 29 20:32:32 2026 +0100
Kconfig: Allow the scheduler errors and warnings with syslog time stamps.
DEBUG_SCHED depended on !SYSLOG_TIMESTAMP since commit feabe52fd8d: then
clock_gettime() called sinfo(), and the time stamp of each syslog()
message called clock_gettime(), so the two called each other.
clock_gettime() has no debug output since commit d60dee4a650, and the
scheduler error and warning output never was a part of the loop.
Keep the old limit only for DEBUG_SCHED_INFO. Thus a configuration can
have the scheduler errors and warnings and the time stamps together.
Kconfig only; the same for all build modes and architectures.
Assisted-by: Claude Code:claude-opus-5-5
Signed-off-by: Marco Casaroli <[email protected]>
---
Kconfig | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/Kconfig b/Kconfig
index 500f0901390..521b7d88faa 100644
--- a/Kconfig
+++ b/Kconfig
@@ -1233,7 +1233,6 @@ endif # DEBUG_WIRELESS
config DEBUG_SCHED
bool "Scheduler Debug Features"
default n
- depends on !SYSLOG_TIMESTAMP
---help---
Enable OS scheduler debug features.
@@ -1256,10 +1255,14 @@ config DEBUG_SCHED_WARN
config DEBUG_SCHED_INFO
bool "Scheduler Informational Output"
default n
- depends on DEBUG_INFO
+ depends on DEBUG_INFO && !SYSLOG_TIMESTAMP
---help---
Enable OS scheduler informational output to SYSLOG.
+ Not with SYSLOG_TIMESTAMP: the time stamp of a message comes
+ from the clock code of the scheduler, and its informational
+ output must not call syslog() again.
+
endif # DEBUG_SCHED
config DEBUG_SYSCALL