Changeset 2c23639 in rtems


Ignore:
Timestamp:
Apr 7, 2017, 8:40:11 PM (2 years ago)
Author:
Cillian O'Donnell <cpodonnell8@…>
Branches:
master
Children:
d2390ce4
Parents:
7acdb10
git-author:
Cillian O'Donnell <cpodonnell8@…> (04/07/17 20:40:11)
git-committer:
Joel Sherrill <joel@…> (04/07/17 20:40:26)
Message:

libdl/rtl-obj-cache.c: Using inttypes macros fixes 4 format warnings

File:
1 edited

Legend:

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

    r7acdb10 r2c23639  
    2323#include <string.h>
    2424#include <unistd.h>
     25#include <inttypes.h>
    2526
    2627#include <rtems/rtl/rtl-allocator.h>
     
    7980
    8081  if (rtems_rtl_trace (RTEMS_RTL_TRACE_CACHE))
    81     printf ("rtl: cache: %2d: fd=%d offset=%d length=%d area=[%d,%d] cache=[%d,%d] size=%d\n",
    82             fd, cache->fd, (int) offset, (int) *length,
    83             (int) offset, (int) offset + *length,
    84             (int) cache->offset, (int) cache->offset + cache->level,
    85             (int) cache->file_size);
     82    printf ("rtl: cache: %2d: fd=%d offset=%" PRIdMAX "length=%zu area=[%"
     83            PRIdMAX ",%" PRIdMAX "] cache=[%" PRIdMAX ",%" PRIdMAX "] size=%zu\n",
     84            fd, cache->fd, offset, *length,
     85            offset, offset + *length,
     86            cache->offset, cache->offset + cache->level,
     87            cache->file_size);
    8688
    8789  if (*length > cache->size)
     
    173175
    174176    if (rtems_rtl_trace (RTEMS_RTL_TRACE_CACHE))
    175       printf ("rtl: cache: %2d: seek: offset=%d buffer_offset=%d read=%d cache=[%d,%d] dist=%d\n",
    176               fd, (int) offset + buffer_offset, (int) buffer_offset, (int) buffer_read,
    177               (int) offset, (int) offset + buffer_read,
    178               (int) (cache->file_size - offset));
     177      printf ("rtl: cache: %2d: seek: offset=%" PRIdMAX "buffer_offset=%zu"
     178              "read=%zu cache=[%" PRIdMAX ",%" PRIdMAX "] dist=%" PRIdMAX "\n",
     179              fd, offset + buffer_offset, buffer_offset, buffer_read,
     180              offset, offset + buffer_read,
     181              (cache->file_size - offset));
    179182
    180183    if (lseek (fd, offset + buffer_offset, SEEK_SET) < 0)
Note: See TracChangeset for help on using the changeset viewer.