From b5276bdb6da979e0af641a0228e1d2eff3adad4a Mon Sep 17 00:00:00 2001 From: Robert Schmidt Date: Tue, 10 Dec 2024 17:49:17 +0100 Subject: [PATCH] nFAPI log: cleanly separate tv_sec/tv_nsec for readability --- nfapi/open-nFAPI/common/src/debug.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nfapi/open-nFAPI/common/src/debug.c b/nfapi/open-nFAPI/common/src/debug.c index 628e64d947..cd872afc11 100644 --- a/nfapi/open-nFAPI/common/src/debug.c +++ b/nfapi/open-nFAPI/common/src/debug.c @@ -66,7 +66,7 @@ void nfapi_trace(nfapi_trace_level_t level, { struct timespec ts; clock_gettime(CLOCK_MONOTONIC, &ts); - printf("%ld%06ld [%c] %10u: %s: ", + printf("%ld.%06ld [%c] %10u: %s: ", ts.tv_sec, ts.tv_nsec / 1000, "XEWNID"[level], // NFAPI_TRACE_NONE, NFAPI_TRACE_ERROR, ...