diff options
author | Ton Roosendaal <ton@blender.org> | 2006-03-05 01:22:38 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2006-03-05 01:22:38 +0300 |
commit | 2286118accb208970f9e87d6d195c625972e23a4 (patch) | |
tree | 596a5dcebce42647c062c5feb9be946ed65a47d5 /intern | |
parent | b731b9e7af3c6e7d7bc61ca2cdbb5c43f9e35a1e (diff) |
To prevent confusement; used %u (unsigned int) for printing memory error.
Diffstat (limited to 'intern')
-rw-r--r-- | intern/guardedalloc/intern/mallocn.c | 6 |
1 files changed, 3 insertions, 3 deletions
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 } |