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; }