From 9a8fbc6f1777334aee6ea035d767ff89c3c3b67f Mon Sep 17 00:00:00 2001 From: "bernard.xiong@gmail.com" Date: Mon, 31 Dec 2012 04:17:31 +0000 Subject: fix some compiling warning. git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2571 bbd45198-f89e-11dd-88c7-29a3b14d5316 --- components/finsh/cmd.c | 8 ++++---- components/finsh/shell.c | 4 ++++ 2 files changed, 8 insertions(+), 4 deletions(-) (limited to 'components') 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 /* for putchar */ +#endif + /* finsh thread */ static struct rt_thread finsh_thread; ALIGN(RT_ALIGN_SIZE) -- cgit v1.3.1