From f143fd8e36078141efdf0ef9e590d792930637fb Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Tue, 14 May 2002 08:19:57 +0000 Subject: Moved the malloc system into the firmware/malloc/ directory, removed the implementation files from the test/malloc/ directory, leaving only test files there. Added headers, corrected a few minor documenational errors. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@571 a1c6a512-1295-4272-9138-f99709370657 --- firmware/test/malloc/Malloc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'firmware/test/malloc/Malloc.c') diff --git a/firmware/test/malloc/Malloc.c b/firmware/test/malloc/Malloc.c index cfc7301..63239fe 100644 --- a/firmware/test/malloc/Malloc.c +++ b/firmware/test/malloc/Malloc.c @@ -26,7 +26,7 @@ kommentaren p */ -/*#undef BMALLOC*/ +#define BMALLOC /* go go go */ #ifdef BMALLOC #include "dmalloc.h" @@ -162,7 +162,7 @@ int main(void) } output: if (out_of_memory || !(count%DISPLAY_WHEN)) { - printf("(%d) malloc %d, realloc %d, free %d, total size %d\n", + printf("(%ld) malloc %ld, realloc %ld, free %ld, total size %ld\n", count, count_malloc, count_realloc, count_free, total_memory); { int count; @@ -175,7 +175,7 @@ int main(void) } if (out_of_memory) { if(out_of_memory) - printf("Couldn't get %d bytes\n", out_of_memory); + printf("Couldn't get %ld bytes\n", out_of_memory); dmalloc_status(); bmalloc_status(); -- cgit v1.1