summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Sherrill <joel@rtems.org>2017-04-24 11:18:47 -0500
committerJoel Sherrill <joel@rtems.org>2017-04-24 12:00:59 -0500
commit3144292b2743dc6c1685d97dd4a9100bb3a3c0b3 (patch)
treed596856e94296c6055eb88fb13f27897a8469967
parentsh/sh7750/sci/sh4uart.c: ix misleading indentation warning (diff)
downloadrtems-3144292b2743dc6c1685d97dd4a9100bb3a3c0b3.tar.bz2
libdl/rtl-obj-cache.c: Use PRIdoff_t to avoid printf() format warnings on some architectures
-rw-r--r--cpukit/libdl/rtl-obj-cache.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/cpukit/libdl/rtl-obj-cache.c b/cpukit/libdl/rtl-obj-cache.c
index c859f606f6..ba9d3bbd66 100644
--- a/cpukit/libdl/rtl-obj-cache.c
+++ b/cpukit/libdl/rtl-obj-cache.c
@@ -23,6 +23,7 @@
#include <string.h>
#include <unistd.h>
#include <inttypes.h>
+#include <rtems/inttypes.h>
#include <rtems/rtl/rtl-allocator.h>
#include "rtl-obj-cache.h"
@@ -79,8 +80,8 @@ 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=%" PRIdMAX "length=%zu area=[%"
- PRIdMAX ",%" PRIdMAX "] cache=[%" PRIdMAX ",%" PRIdMAX "] size=%zu\n",
+ printf ("rtl: cache: %2d: fd=%d offset=%" PRIdoff_t "length=%zu area=[%"
+ PRIdoff_t ",%" PRIdoff_t "] cache=[%" PRIdoff_t ",%" PRIdoff_t "] size=%zu\n",
fd, cache->fd, offset, *length,
offset, offset + *length,
cache->offset, cache->offset + cache->level,