From 72e76600c3dd3577cc0bf82d8fb2a7d1717327fa Mon Sep 17 00:00:00 2001 From: Xiang Xiao Date: Fri, 23 Dec 2022 17:17:17 +0800 Subject: [PATCH] fs/procfs: Avoid the cast in uptime_read Signed-off-by: Xiang Xiao --- 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 76fcfd727c..0340fe24f0 100644 --- a/fs/procfs/fs_procfsuptime.c +++ b/fs/procfs/fs_procfsuptime.c @@ -250,7 +250,7 @@ static ssize_t uptime_read(FAR struct file *filep, FAR char *buffer, "%7" PRIu64 ".%02u\n", sec, csec); #else linesize = procfs_snprintf(attr->line, UPTIME_LINELEN, - "%7lu.%02u\n", (unsigned long)sec, csec); + "%7" PRIu32 ".%02u\n", sec, csec); #endif #endif