summaryrefslogtreecommitdiffstats
path: root/cpukit/libcsupport/src/malloc_report_statistics_plugin.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2007-12-19 16:03:54 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2007-12-19 16:03:54 +0000
commit8e30a269a21cd61ca1387e666e458e52c0b153ab (patch)
tree4d1cc760d319a170b335b9e90ea9d26162ffc687 /cpukit/libcsupport/src/malloc_report_statistics_plugin.c
parent2007-12-18 Joel Sherrill <joel.sherrill@oarcorp.com> (diff)
downloadrtems-8e30a269a21cd61ca1387e666e458e52c0b153ab.tar.bz2
2007-12-19 Joel Sherrill <joel.sherrill@OARcorp.com>
* libcsupport/Makefile.am, libcsupport/include/rtems/malloc.h, libcsupport/src/free.c, libcsupport/src/malloc.c, libcsupport/src/malloc_p.h, libcsupport/src/malloc_report_statistics_plugin.c, libmisc/shell/shell.c, libmisc/shell/shell.h, score/src/objectinitializeinformation.c: Add posix_memalign. Split out management of deferred frees to subroutines. * libcsupport/src/malloc_deferred.c, libcsupport/src/posix_memalign.c: New files.
Diffstat (limited to 'cpukit/libcsupport/src/malloc_report_statistics_plugin.c')
-rw-r--r--cpukit/libcsupport/src/malloc_report_statistics_plugin.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/cpukit/libcsupport/src/malloc_report_statistics_plugin.c b/cpukit/libcsupport/src/malloc_report_statistics_plugin.c
index 2f00477d44..c89cc46da6 100644
--- a/cpukit/libcsupport/src/malloc_report_statistics_plugin.c
+++ b/cpukit/libcsupport/src/malloc_report_statistics_plugin.c
@@ -36,15 +36,15 @@ void malloc_report_statistics_with_plugin(
"Malloc statistics\n"
" avail:%"PRIu32"k allocated:%"PRIu32"k (%"PRId32"%%) "
"max:%"PRIu32"k (%"PRIu32"%%)"
- " lifetime:%"PRIuMAX"k freed:%"PRIuMAX"k\n",
+ " lifetime:%"PRIu32"k freed:%"PRIu32"k\n",
s->space_available / 1024,
allocated / 1024,
/* avoid float! */
(allocated * 100) / s->space_available,
s->max_depth / 1024,
(s->max_depth * 100) / s->space_available,
- s->lifetime_allocated / 1024,
- s->lifetime_freed / 1024
+ (uint32_t) (s->lifetime_allocated / 1024),
+ (uint32_t) (s->lifetime_freed / 1024)
);
(*print)(
context,