summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCillian O'Donnell <cpodonnell8@gmail.com>2017-04-07 15:40:11 -0500
committerJoel Sherrill <joel@rtems.org>2017-04-07 15:40:26 -0500
commit2c23639dddf1025cb6feb77ac834c41436519c4c (patch)
treeac0220a9a328e76f64e57034a491dc02f1291e7c
parentlibcpu/../mpc5xx/.../vectors_init.c: Using inttype macros fixes 39 format war... (diff)
downloadrtems-2c23639dddf1025cb6feb77ac834c41436519c4c.tar.bz2
libdl/rtl-obj-cache.c: Using inttypes macros fixes 4 format warnings
-rw-r--r--cpukit/libdl/rtl-obj-cache.c21
1 files changed, 12 insertions, 9 deletions
diff --git a/cpukit/libdl/rtl-obj-cache.c b/cpukit/libdl/rtl-obj-cache.c
index a4676cfa0d..c859f606f6 100644
--- a/cpukit/libdl/rtl-obj-cache.c
+++ b/cpukit/libdl/rtl-obj-cache.c
@@ -22,6 +22,7 @@
#include <stdio.h>
#include <string.h>
#include <unistd.h>
+#include <inttypes.h>
#include <rtems/rtl/rtl-allocator.h>
#include "rtl-obj-cache.h"
@@ -78,11 +79,12 @@ rtems_rtl_obj_cache_read (rtems_rtl_obj_cache_t* cache,
struct stat sb;
if (rtems_rtl_trace (RTEMS_RTL_TRACE_CACHE))
- printf ("rtl: cache: %2d: fd=%d offset=%d length=%d area=[%d,%d] cache=[%d,%d] size=%d\n",
- fd, cache->fd, (int) offset, (int) *length,
- (int) offset, (int) offset + *length,
- (int) cache->offset, (int) cache->offset + cache->level,
- (int) cache->file_size);
+ printf ("rtl: cache: %2d: fd=%d offset=%" PRIdMAX "length=%zu area=[%"
+ PRIdMAX ",%" PRIdMAX "] cache=[%" PRIdMAX ",%" PRIdMAX "] size=%zu\n",
+ fd, cache->fd, offset, *length,
+ offset, offset + *length,
+ cache->offset, cache->offset + cache->level,
+ cache->file_size);
if (*length > cache->size)
{
@@ -172,10 +174,11 @@ rtems_rtl_obj_cache_read (rtems_rtl_obj_cache_t* cache,
}
if (rtems_rtl_trace (RTEMS_RTL_TRACE_CACHE))
- printf ("rtl: cache: %2d: seek: offset=%d buffer_offset=%d read=%d cache=[%d,%d] dist=%d\n",
- fd, (int) offset + buffer_offset, (int) buffer_offset, (int) buffer_read,
- (int) offset, (int) offset + buffer_read,
- (int) (cache->file_size - offset));
+ printf ("rtl: cache: %2d: seek: offset=%" PRIdMAX "buffer_offset=%zu"
+ "read=%zu cache=[%" PRIdMAX ",%" PRIdMAX "] dist=%" PRIdMAX "\n",
+ fd, offset + buffer_offset, buffer_offset, buffer_read,
+ offset, offset + buffer_read,
+ (cache->file_size - offset));
if (lseek (fd, offset + buffer_offset, SEEK_SET) < 0)
{