From 7c1548cfce7db65eb990f2358b3d38df04b81b26 Mon Sep 17 00:00:00 2001 From: Mukund Sivaraman Date: Wed, 12 Mar 2008 23:46:33 -0700 Subject: [PATCH] Fixed format string warnings --- src/utils.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/utils.c b/src/utils.c index 0954bc4..80948b2 100644 --- a/src/utils.c +++ b/src/utils.c @@ -35,21 +35,21 @@ void *debugging_calloc(size_t nmemb, size_t size, const char *file, unsigned long line) { void *ptr = calloc(nmemb, size); - fprintf(stderr, "{calloc: %p:%u x %u} %s:%lu\n", ptr, nmemb, size, file, line); + fprintf(stderr, "{calloc: %p:%zu x %zu} %s:%lu\n", ptr, nmemb, size, file, line); return ptr; } void *debugging_malloc(size_t size, const char *file, unsigned long line) { void *ptr = malloc(size); - fprintf(stderr, "{malloc: %p:%u} %s:%lu\n", ptr, size, file, line); + fprintf(stderr, "{malloc: %p:%zu} %s:%lu\n", ptr, size, file, line); return ptr; } void *debugging_realloc(void *ptr, size_t size, const char *file, unsigned long line) { void *newptr = realloc(ptr, size); - fprintf(stderr, "{realloc: %p -> %p:%u} %s:%lu\n", ptr, newptr, size, file, line); + fprintf(stderr, "{realloc: %p -> %p:%zu} %s:%lu\n", ptr, newptr, size, file, line); return newptr; }