fs/procfs/fs_procfsuptime: Fixed type warning.
This commit is contained in:
parent
1e90dd9284
commit
7a85cf1728
@ -266,9 +266,11 @@ 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", sec, csec);
|
||||
linesize = snprintf(attr->line, UPTIME_LINELEN, "%7llu.%02u\n",
|
||||
sec, csec);
|
||||
#else
|
||||
linesize = snprintf(attr->line, UPTIME_LINELEN, "%7lu.%02u\n", sec, csec);
|
||||
linesize = snprintf(attr->line, UPTIME_LINELEN, "%7lu.%02u\n",
|
||||
(unsigned long)sec, csec);
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user