summaryrefslogtreecommitdiffstats
path: root/cpukit/libblock/src/bdbuf.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/libblock/src/bdbuf.c')
-rw-r--r--cpukit/libblock/src/bdbuf.c8
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);