From 08b4cb651780fefb51325fa2a5852be5f8619f29 Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Thu, 5 Nov 2020 21:01:11 +0900 Subject: [PATCH] fs/procfs/fs_procfsuptime.c: Fix a printf format --- fs/procfs/fs_procfsuptime.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/procfs/fs_procfsuptime.c b/fs/procfs/fs_procfsuptime.c index fd92869bd1..12dd895b7e 100644 --- a/fs/procfs/fs_procfsuptime.c +++ b/fs/procfs/fs_procfsuptime.c @@ -268,7 +268,7 @@ static ssize_t uptime_read(FAR struct file *filep, FAR char *buffer, /* Convert the seconds + hundredths of seconds to a string */ #ifdef CONFIG_SYSTEM_TIME64 - linesize = snprintf(attr->line, UPTIME_LINELEN, "%7llu.%02u\n", + linesize = snprintf(attr->line, UPTIME_LINELEN, "%7" PRIu64 ".%02u\n", sec, csec); #else linesize = snprintf(attr->line, UPTIME_LINELEN, "%7lu.%02u\n",