From 2286118accb208970f9e87d6d195c625972e23a4 Mon Sep 17 00:00:00 2001 From: Ton Roosendaal Date: Sat, 4 Mar 2006 22:22:38 +0000 Subject: To prevent confusement; used %u (unsigned int) for printing memory error. --- intern/guardedalloc/intern/mallocn.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'intern') diff --git a/intern/guardedalloc/intern/mallocn.c b/intern/guardedalloc/intern/mallocn.c index 63b49c5ad4f..f3023b96445 100644 --- a/intern/guardedalloc/intern/mallocn.c +++ b/intern/guardedalloc/intern/mallocn.c @@ -229,7 +229,7 @@ void *MEM_mallocN(unsigned int len, const char *str) make_memhead_header(memh, len, str); return (++memh); } - print_error("Malloc returns nill: len=%d in %s, total %d\n",len, str, mem_in_use); + print_error("Malloc returns nill: len=%d in %s, total %u\n",len, str, mem_in_use); return NULL; } @@ -245,7 +245,7 @@ void *MEM_callocN(unsigned int len, const char *str) make_memhead_header(memh, len, str); return (++memh); } - print_error("Calloc returns nill: len=%d in %s, total %d\n",len, str, mem_in_use); + print_error("Calloc returns nill: len=%d in %s, total %u\n",len, str, mem_in_use); return 0; } @@ -268,7 +268,7 @@ void *MEM_mapallocN(unsigned int len, const char *str) mmap_in_use += len; return (++memh); } - print_error("Mapalloc returns nill: len=%d in %s, total %d\n",len, str, mmap_in_use); + print_error("Mapalloc returns nill: len=%d in %s, total %u\n",len, str, mmap_in_use); return NULL; #endif } -- cgit v1.2.3