summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMukund Sivaraman <muks@banu.com>2008-03-12 23:50:23 -0700
committerMukund Sivaraman <muks@banu.com>2008-03-13 15:09:30 -0700
commitb11c74637f3d44a01875fda1bbcc4e046902fc80 (patch)
tree8274da39aa85a1f95e95facb7f6a34eac68cb78e
parentfc622831644a7e49c3a8afebea4b7ec1649c4198 (diff)
Fixed format string warnings
-rw-r--r--src/heap.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/heap.c b/src/heap.c
index 6a256a9..a39207c 100644
--- a/src/heap.c
+++ b/src/heap.c
@@ -33,7 +33,7 @@ debugging_calloc(size_t nmemb, size_t size, const char *file,
assert(size > 0);
ptr = calloc(nmemb, size);
- fprintf(stderr, "{calloc: %p:%u x %u} %s:%lu\n", ptr, nmemb, size, file,
+ fprintf(stderr, "{calloc: %p:%zu x %zu} %s:%lu\n", ptr, nmemb, size, file,
line);
return ptr;
}
@@ -46,7 +46,7 @@ debugging_malloc(size_t size, const char *file, unsigned long line)
assert(size > 0);
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;
}
@@ -58,7 +58,7 @@ debugging_realloc(void *ptr, size_t size, const char *file, unsigned long line)
assert(size > 0);
newptr = realloc(ptr, size);
- fprintf(stderr, "{realloc: %p -> %p:%u} %s:%lu\n", ptr, newptr, size,
+ fprintf(stderr, "{realloc: %p -> %p:%zu} %s:%lu\n", ptr, newptr, size,
file, line);
return newptr;
}
@@ -87,7 +87,7 @@ debugging_strdup(const char *s, const char *file, unsigned long line)
return NULL;
memcpy(ptr, s, len);
- fprintf(stderr, "{strdup: %p:%u} %s:%lu\n", ptr, len, file, line);
+ fprintf(stderr, "{strdup: %p:%zu} %s:%lu\n", ptr, len, file, line);
return ptr;
}