[rtems commit] cpukit/libdl/rtl-obj-comp.c: Use correct printf() specification

Joel Sherril joel at rtems.org
Tue Mar 17 15:05:23 UTC 2015


Module:    rtems
Branch:    master
Commit:    4b7df86b8e8148eeb886f93a91305948478169ac
Changeset: http://git.rtems.org/rtems/commit/?id=4b7df86b8e8148eeb886f93a91305948478169ac

Author:    Joel Sherrill <joel.sherrill at oarcorp.com>
Date:      Fri Mar 13 16:10:08 2015 -0500

cpukit/libdl/rtl-obj-comp.c: Use correct printf() specification

---

 cpukit/libdl/rtl-obj-comp.c             | 2 +-
 cpukit/libfs/src/rfs/rtems-rfs-buffer.c | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/cpukit/libdl/rtl-obj-comp.c b/cpukit/libdl/rtl-obj-comp.c
index d9c5462..e36276c 100644
--- a/cpukit/libdl/rtl-obj-comp.c
+++ b/cpukit/libdl/rtl-obj-comp.c
@@ -142,7 +142,7 @@ rtems_rtl_obj_comp_read (rtems_rtl_obj_comp_t* comp,
 
       if (in_length != block_size)
       {
-        rtems_rtl_set_error (EIO, "compressed read failed: bs=%u in=%u",
+        rtems_rtl_set_error (EIO, "compressed read failed: bs=%u in=%zu",
                              block_size, in_length);
         return false;
       }
diff --git a/cpukit/libfs/src/rfs/rtems-rfs-buffer.c b/cpukit/libfs/src/rfs/rtems-rfs-buffer.c
index 3d89f5f..d99a351 100644
--- a/cpukit/libfs/src/rfs/rtems-rfs-buffer.c
+++ b/cpukit/libfs/src/rfs/rtems-rfs-buffer.c
@@ -52,12 +52,12 @@ rtems_rfs_scan_chain (rtems_chain_control*   chain,
     buffer = (rtems_rfs_buffer*) node;
 
     if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_CHAINS))
-      printf ("%" PRIuPTR " ", ((intptr_t) buffer->user));
+      printf ("%" PRIiPTR " ", ((intptr_t) buffer->user));
 
     if (((rtems_rfs_buffer_block) ((intptr_t)(buffer->user))) == block)
     {
       if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_CHAINS))
-        printf (": found block=%" PRIuPTR "\n",
+        printf (": found block=%" PRIiPTR "\n",
                 ((intptr_t)(buffer->user)));
 
       (*count)--;



More information about the vc mailing list