This is an automated email from the ASF dual-hosted git repository.

aguettouche pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx-apps.git


The following commit(s) were added to refs/heads/master by this push:
     new bfa826d  system/trace: Fix fprintf format warnings
bfa826d is described below

commit bfa826d30d87ed293c686acd000d936af3604fbe
Author: Nakamura, Yuuichi <yuuichi.a.nakam...@sony.com>
AuthorDate: Tue Jan 5 17:11:27 2021 +0900

    system/trace: Fix fprintf format warnings
---
 system/trace/trace_dump.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/system/trace/trace_dump.c b/system/trace/trace_dump.c
index 677fb3e..224c7fe 100644
--- a/system/trace/trace_dump.c
+++ b/system/trace/trace_dump.c
@@ -295,7 +295,7 @@ static void trace_dump_header(FAR FILE *out,
 
   pid = ctx->cpu[cpu].current_pid;
 
-  fprintf(out, "%8s-%-3u [%d] %3u.%09u: ",
+  fprintf(out, "%8s-%-3u [%d] %3" PRIu32 ".%09" PRIu32 ": ",
           get_task_name(pid, ctx), get_pid(pid), cpu,
 #ifdef CONFIG_SCHED_INSTRUMENTATION_HIRES
           sec, nsec
@@ -507,11 +507,11 @@ static int trace_dump_one(FAR FILE *out,
 #endif
               if (i == 0)
                 {
-                  fprintf(out, "arg%d: 0x%x", i, arg);
+                  fprintf(out, "arg%d: 0x%" PRIxPTR, i, arg);
                 }
               else
                 {
-                  fprintf(out, ", arg%d: 0x%x", i, arg);
+                  fprintf(out, ", arg%d: 0x%" PRIxPTR, i, arg);
                 }
             }
 

Reply via email to