mirror of
https://github.com/apache/nuttx.git
synced 2026-09-03 07:33:00 +00:00
fs/procfs/fs_procfsuptime.c: Fix a printf format
This commit is contained in:
parent
95a3db7629
commit
08b4cb6517
1 changed files with 1 additions and 1 deletions
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue