Changeset 3144292b in rtems


Ignore:
Timestamp:
Apr 24, 2017, 4:18:47 PM (2 years ago)
Author:
Joel Sherrill <joel@…>
Branches:
master
Children:
485222e
Parents:
0d01cdd6
git-author:
Joel Sherrill <joel@…> (04/24/17 16:18:47)
git-committer:
Joel Sherrill <joel@…> (04/24/17 17:00:59)
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libdl/rtl-obj-cache.c

    r0d01cdd6 r3144292b  
    2424#include <unistd.h>
    2525#include <inttypes.h>
     26#include <rtems/inttypes.h>
    2627
    2728#include <rtems/rtl/rtl-allocator.h>
     
    8081
    8182  if (rtems_rtl_trace (RTEMS_RTL_TRACE_CACHE))
    82     printf ("rtl: cache: %2d: fd=%d offset=%" PRIdMAX "length=%zu area=[%"
    83             PRIdMAX ",%" PRIdMAX "] cache=[%" PRIdMAX ",%" PRIdMAX "] size=%zu\n",
     83    printf ("rtl: cache: %2d: fd=%d offset=%" PRIdoff_t "length=%zu area=[%"
     84            PRIdoff_t ",%" PRIdoff_t "] cache=[%" PRIdoff_t ",%" PRIdoff_t "] size=%zu\n",
    8485            fd, cache->fd, offset, *length,
    8586            offset, offset + *length,
Note: See TracChangeset for help on using the changeset viewer.