From f8d6a85f90d2b66adf92f42da85524966413f8b2 Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Tue, 10 Nov 2020 23:18:01 +0900 Subject: [PATCH] drivers/syslog/vsyslog.c: Fix a printf format warning --- drivers/syslog/vsyslog.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/syslog/vsyslog.c b/drivers/syslog/vsyslog.c index 3421f514dc..e6cf91716c 100644 --- a/drivers/syslog/vsyslog.c +++ b/drivers/syslog/vsyslog.c @@ -132,8 +132,8 @@ int nx_vsyslog(int priority, FAR const IPTR char *fmt, FAR va_list *ap) #if defined(CONFIG_SYSLOG_TIMESTAMP) /* Pre-pend the message with the current time, if available */ - ret = lib_sprintf(&stream.public, "[%5d.%06d] ", - ts.tv_sec, ts.tv_nsec / 1000); + ret = lib_sprintf(&stream.public, "[%5jd.%06ld] ", + (uintmax_t)ts.tv_sec, ts.tv_nsec / 1000); #else ret = 0; #endif