summaryrefslogtreecommitdiffstats
path: root/cpukit/libmisc/shell/main_wkspaceinfo.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2014-11-27 13:25:22 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2014-11-28 13:09:07 +0100
commit2c3c657625f5129e3062058a2c83f0020fd6bab5 (patch)
tree1b6b2a5b125d4dffc1268768bc067f021c35a412 /cpukit/libmisc/shell/main_wkspaceinfo.c
parentlibcsupport: Delete malloc statistics (diff)
downloadrtems-2c3c657625f5129e3062058a2c83f0020fd6bab5.tar.bz2
score: Return heap stats via _Heap_Get_information
Print out heap statistics via the MALLOC and WKSPACE shell commands.
Diffstat (limited to 'cpukit/libmisc/shell/main_wkspaceinfo.c')
-rw-r--r--cpukit/libmisc/shell/main_wkspaceinfo.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/cpukit/libmisc/shell/main_wkspaceinfo.c b/cpukit/libmisc/shell/main_wkspaceinfo.c
index f4f6f4db78..a9906524db 100644
--- a/cpukit/libmisc/shell/main_wkspaceinfo.c
+++ b/cpukit/libmisc/shell/main_wkspaceinfo.c
@@ -24,7 +24,7 @@
void rtems_shell_print_unified_work_area_message(void)
{
- printf( "\nC Program Heap and RTEMS Workspace are %s.\n",
+ printf( "C Program Heap and RTEMS Workspace are %s.\n",
rtems_configuration_get_unified_work_area() ? "the same" : "separate"
);
}
@@ -41,6 +41,7 @@ static int rtems_shell_main_wkspace_info(
_Protected_heap_Get_information( &_Workspace_Area, &info );
rtems_shell_print_heap_info( "free", &info.Free );
rtems_shell_print_heap_info( "used", &info.Used );
+ rtems_shell_print_heap_stats( &info.Stats );
return 0;
}