diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2009-10-13 15:29:45 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2009-10-13 15:29:45 +0000 |
commit | 253c3a1d2153ba173f83f2d0f66ccf43fbd353af (patch) | |
tree | 8a69cbde16151896397a54b9632782ba6a89041a /cpukit/libblock | |
parent | Enable interrupts during open to avoid NULL pointer access in interrupt handler. (diff) | |
download | rtems-253c3a1d2153ba173f83f2d0f66ccf43fbd353af.tar.bz2 |
2009-10-13 Ralf Corsépius <ralf.corsepius@rtems.org>
* libblock/src/bdbuf.c: Fix broken printf formats.
Use size_t for sizes.
Diffstat (limited to 'cpukit/libblock')
-rw-r--r-- | cpukit/libblock/src/bdbuf.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/cpukit/libblock/src/bdbuf.c b/cpukit/libblock/src/bdbuf.c index 21d512bb2a..629c7fa576 100644 --- a/cpukit/libblock/src/bdbuf.c +++ b/cpukit/libblock/src/bdbuf.c @@ -31,6 +31,8 @@ #include "config.h" #endif +#include <inttypes.h> + #include <rtems.h> #include <rtems/error.h> #include <rtems/malloc.h> @@ -1042,11 +1044,11 @@ static void rtems_bdbuf_group_realloc (rtems_bdbuf_group* group, size_t new_bds_per_group) { rtems_bdbuf_buffer* bd; - int b; + size_t b; size_t bufs_per_bd; if (rtems_bdbuf_tracer) - printf ("bdbuf:realloc: %lu: %ld -> %ld\n", + printf ("bdbuf:realloc: %tu: %zd -> %zd\n", group - bdbuf_cache.groups, group->bds_per_group, new_bds_per_group); @@ -1103,7 +1105,7 @@ rtems_bdbuf_get_next_bd (size_t bds_per_group, rtems_bdbuf_buffer* bd = (rtems_bdbuf_buffer*) node; if (rtems_bdbuf_tracer) - printf ("bdbuf:next-bd: %lu (%ld:%ld) %ld -> %ld\n", + printf ("bdbuf:next-bd: %tu (%td:%" PRId32 ") %zd -> %zd\n", bd - bdbuf_cache.bds, bd->group - bdbuf_cache.groups, bd->group->users, bd->group->bds_per_group, bds_per_group); |