fs/procfs: Avoid the cast in uptime_read

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2022-12-23 17:17:17 +08:00 committed by Alan Carvalho de Assis
parent 2f80a05eae
commit 72e76600c3

View File

@ -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