libdl/rtl-obj-cache.c: Use PRIdoff_t to avoid printf() format warnings on some architectures

This commit is contained in:
Joel Sherrill
2017-04-24 11:18:47 -05:00
parent 0d01cdd68c
commit 3144292b27

View File

@@ -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,