[rtems commit] Revert: rtems-rfs-buffer.c: Correct printf()

Joel Sherrill joel at rtems.org
Tue Sep 16 21:00:27 UTC 2014


  format specifiers to eliminate warnings
User-Agent: Heirloom mailx 12.4 7/29/08
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

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

Author:    Joel Sherrill <joel.sherrill at oarcorp.com>
Date:      Thu Sep  4 15:39:41 2014 -0500

Revert: rtems-rfs-buffer.c: Correct printf() format specifiers to eliminate warnings

This may actually be a problem in inttypes.h.

---

 cpukit/libfs/src/rfs/rtems-rfs-buffer.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/cpukit/libfs/src/rfs/rtems-rfs-buffer.c b/cpukit/libfs/src/rfs/rtems-rfs-buffer.c
index 4192b21..3d89f5f 100644
--- a/cpukit/libfs/src/rfs/rtems-rfs-buffer.c
+++ b/cpukit/libfs/src/rfs/rtems-rfs-buffer.c
@@ -52,12 +52,13 @@ rtems_rfs_scan_chain (rtems_chain_control*   chain,
     buffer = (rtems_rfs_buffer*) node;
 
     if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_CHAINS))
-      printf ("%p ", buffer->user);
+      printf ("%" PRIuPTR " ", ((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=%p\n", buffer->user);
+        printf (": found block=%" PRIuPTR "\n",
+                ((intptr_t)(buffer->user)));
 
       (*count)--;
       rtems_chain_extract_unprotected (node);



More information about the vc mailing list