From 253c3a1d2153ba173f83f2d0f66ccf43fbd353af Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Tue, 13 Oct 2009 15:29:45 +0000 Subject: =?UTF-8?q?2009-10-13=09Ralf=20Cors=C3=A9pius=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * libblock/src/bdbuf.c: Fix broken printf formats. Use size_t for sizes. --- cpukit/libblock/src/bdbuf.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'cpukit/libblock/src/bdbuf.c') 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 + #include #include #include @@ -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); -- cgit v1.2.3