Changeset 253c3a1d in rtems for cpukit/libblock


Ignore:
Timestamp:
Oct 13, 2009, 3:29:45 PM (10 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, master
Children:
b36a7d8
Parents:
7cafde22
Message:

2009-10-13 Ralf Corsépius <ralf.corsepius@…>

  • libblock/src/bdbuf.c: Fix broken printf formats. Use size_t for sizes.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libblock/src/bdbuf.c

    r7cafde22 r253c3a1d  
    3131#include "config.h"
    3232#endif
     33
     34#include <inttypes.h>
    3335
    3436#include <rtems.h>
     
    10431045{
    10441046  rtems_bdbuf_buffer* bd;
    1045   int                 b;
     1047  size_t              b;
    10461048  size_t              bufs_per_bd;
    10471049
    10481050  if (rtems_bdbuf_tracer)
    1049     printf ("bdbuf:realloc: %lu: %ld -> %ld\n",
     1051    printf ("bdbuf:realloc: %tu: %zd -> %zd\n",
    10501052            group - bdbuf_cache.groups, group->bds_per_group,
    10511053            new_bds_per_group);
     
    11041106
    11051107    if (rtems_bdbuf_tracer)
    1106       printf ("bdbuf:next-bd: %lu (%ld:%ld) %ld -> %ld\n",
     1108      printf ("bdbuf:next-bd: %tu (%td:%" PRId32 ") %zd -> %zd\n",
    11071109              bd - bdbuf_cache.bds,
    11081110              bd->group - bdbuf_cache.groups, bd->group->users,
Note: See TracChangeset for help on using the changeset viewer.