summaryrefslogtreecommitdiff
path: root/sys/kern
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2024-05-27 09:03:33 -0400
committerIan Moffett <ian@osmora.org>2024-05-27 09:03:33 -0400
commit80c9ac57e65eec746ffeba968efc8163e0f0e9ae (patch)
tree52e6e13252204df8308f35f31f3c5202f7224ea7 /sys/kern
parent4861d3ccf90d6f9e0671dde89223bf3c18d7ce7c (diff)
kernel: syslog: Add extra comment
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/kern_syslog.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/kern/kern_syslog.c b/sys/kern/kern_syslog.c
index 7394e24..f52c05f 100644
--- a/sys/kern/kern_syslog.c
+++ b/sys/kern/kern_syslog.c
@@ -124,6 +124,7 @@ kprintf(const char *fmt, ...)
if (req_timer(TIMER_GP, &tmr) != 0)
has_counter = false;
+ /* If we can use the counter, format the timestamp */
if (has_counter) {
if (tmr.get_time_sec != NULL && tmr.get_time_usec != NULL)
snprintf(timestamp, sizeof(timestamp), "[ %d.%06d] ",