summaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
author[email protected] <[email protected]>2012-12-31 04:17:31 +0000
committer[email protected] <[email protected]>2012-12-31 04:17:31 +0000
commit9a8fbc6f1777334aee6ea035d767ff89c3c3b67f (patch)
treecff2a82f9da1a575f71d27c71ccb314706ee38db /components
parent378fa1985797d72c3f77cd7f67a94d6e5528c830 (diff)
fix some compiling warning.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2571 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'components')
-rw-r--r--components/finsh/cmd.c8
-rw-r--r--components/finsh/shell.c4
2 files changed, 8 insertions, 4 deletions
diff --git a/components/finsh/cmd.c b/components/finsh/cmd.c
index 4ebbfc62d6..1cd51de34f 100644
--- a/components/finsh/cmd.c
+++ b/components/finsh/cmd.c
@@ -287,14 +287,14 @@ static long _list_memheap(struct rt_list_node *list)
struct rt_memheap *mh;
struct rt_list_node *node;
- rt_kprintf("memheap pool size available size\n");
- rt_kprintf("-------- --------- --------------\n");
+ rt_kprintf("memheap pool size max used size available size\n");
+ rt_kprintf("-------- ---------- ------------- --------------\n");
for (node = list->next; node != list; node = node->next)
{
mh = (struct rt_memheap *)rt_list_entry(node, struct rt_object, list);
- rt_kprintf("%-8.*s %04d %04d\n", RT_NAME_MAX, mh->parent.name,
- mh->pool_size, mh->available_size);
+ rt_kprintf("%-8.*s %-010d %-013d %-05d\n", RT_NAME_MAX, mh->parent.name,
+ mh->pool_size, mh->max_used_size, mh->available_size);
}
return 0;
diff --git a/components/finsh/shell.c b/components/finsh/shell.c
index 9fcfdd71f0..82cbc68485 100644
--- a/components/finsh/shell.c
+++ b/components/finsh/shell.c
@@ -26,6 +26,10 @@
#include "finsh.h"
#include "shell.h"
+#ifdef _WIN32
+#include <stdio.h> /* for putchar */
+#endif
+
/* finsh thread */
static struct rt_thread finsh_thread;
ALIGN(RT_ALIGN_SIZE)