diff options
| author | Daniel Stenberg <daniel@haxx.se> | 2002-05-14 08:19:57 +0000 |
|---|---|---|
| committer | Daniel Stenberg <daniel@haxx.se> | 2002-05-14 08:19:57 +0000 |
| commit | f143fd8e36078141efdf0ef9e590d792930637fb (patch) | |
| tree | 3d7a79599dca5ecb8d1163b33da4379f86f4093a /firmware/test/malloc/Malloc.c | |
| parent | bbdeba6d8cb2f2066e22d39c2d5937d3608fd8ed (diff) | |
| download | rockbox-f143fd8e36078141efdf0ef9e590d792930637fb.zip rockbox-f143fd8e36078141efdf0ef9e590d792930637fb.tar.gz rockbox-f143fd8e36078141efdf0ef9e590d792930637fb.tar.bz2 rockbox-f143fd8e36078141efdf0ef9e590d792930637fb.tar.xz | |
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
Diffstat (limited to 'firmware/test/malloc/Malloc.c')
| -rw-r--r-- | firmware/test/malloc/Malloc.c | 6 |
1 files changed, 3 insertions, 3 deletions
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å srand() och det löser sig. */ -/*#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(); |