summaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
authorBernard Xiong <[email protected]>2015-09-02 14:05:38 +0800
committerBernard Xiong <[email protected]>2015-09-02 14:05:38 +0800
commitcb51bdb245a4b8336533a01fdaaba017bf93b15a (patch)
tree79d9e1de2e5852c7aa6ac6161af4dea1e809a566 /components
parentdc194cd7b6ff8a0c4ac91ab76b32e3581b67f1f3 (diff)
[finsh] fix compiling warning.
Diffstat (limited to 'components')
-rw-r--r--components/finsh/msh_cmd.c5
1 files changed, 5 insertions, 0 deletions
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;
}