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

This may actually be a problem in inttypes.h.
This commit is contained in:
Joel Sherrill
2014-09-04 15:39:41 -05:00
parent 6cd20744e5
commit f641b15e18

View File

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