From 4b7df86b8e8148eeb886f93a91305948478169ac Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Fri, 13 Mar 2015 16:10:08 -0500 Subject: 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 d9c5462e1e..e36276c58f 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 3d89f5fa43..d99a351a7f 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)--; -- cgit v1.2.3