fs/procfs/fs_procfsproc.c: Fix a printf format warning

This commit is contained in:
YAMAMOTO Takashi 2020-11-09 20:16:44 +09:00 committed by Xiang Xiao
parent 9867c1b467
commit 008d411fc3

View File

@ -630,9 +630,9 @@ static ssize_t proc_status(FAR struct proc_file_s *procfile,
return totalsize; return totalsize;
} }
/* Show the signal mask */ /* Show the signal mask. Note: sigset_t is uint32_t on NuttX. */
linesize = snprintf(procfile->line, STATUS_LINELEN, "%-12s%08x\n", linesize = snprintf(procfile->line, STATUS_LINELEN, "%-12s%08" PRIx32 "\n",
"SigMask:", tcb->sigprocmask); "SigMask:", tcb->sigprocmask);
copysize = procfs_memcpy(procfile->line, linesize, buffer, remaining, copysize = procfs_memcpy(procfile->line, linesize, buffer, remaining,
&offset); &offset);