From cb51bdb245a4b8336533a01fdaaba017bf93b15a Mon Sep 17 00:00:00 2001 From: Bernard Xiong Date: Wed, 2 Sep 2015 14:05:38 +0800 Subject: [PATCH] [finsh] fix compiling warning. --- components/finsh/msh_cmd.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/components/finsh/msh_cmd.c b/components/finsh/msh_cmd.c index 44c3d8fd88..eb446f731b 100644 --- a/components/finsh/msh_cmd.c +++ b/components/finsh/msh_cmd.c @@ -242,6 +242,11 @@ int cmd_mkfs(int argc, char** argv) rt_kprintf("Usage: mkfs [-t type] device\n"); return 0; } + + if (result != RT_EOK) + { + rt_kprintf("mkfs failed, result=%d\n", result); + } return 0; }