[PATCH 01/19] cpukit/libdl/rtl-obj-comp.c: Use correct printf() specification

Joel Sherrill joel.sherrill at oarcorp.com
Mon Mar 16 20:29:18 UTC 2015


---
 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)--;
-- 
1.9.3




More information about the devel mailing list