From 008d411fc3c48a257db846f30912ee3f9ff8d4dd Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Mon, 9 Nov 2020 20:16:44 +0900 Subject: [PATCH] fs/procfs/fs_procfsproc.c: Fix a printf format warning --- fs/procfs/fs_procfsproc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/procfs/fs_procfsproc.c b/fs/procfs/fs_procfsproc.c index 0584a9eaa8..c20ab77dc4 100644 --- a/fs/procfs/fs_procfsproc.c +++ b/fs/procfs/fs_procfsproc.c @@ -630,9 +630,9 @@ static ssize_t proc_status(FAR struct proc_file_s *procfile, 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); copysize = procfs_memcpy(procfile->line, linesize, buffer, remaining, &offset);