fs/procfs: Avoid the cast in uptime_read
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
parent
2f80a05eae
commit
72e76600c3
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue