Skip to content
Permalink
Browse files

subsys/fs/shell: clean up nffs mount diagnostics

Make the diagnostics shorter, and don't reference FatFs.

Signed-off-by: Peter A. Bigot <pab@pabigot.com>
  • Loading branch information...
pabigot authored and nashif committed Jul 23, 2019
1 parent 4d8726a commit 56886b0f44d187f52979ed5a90ae33fd2556f7cd
Showing with 3 additions and 4 deletions.
  1. +3 −4 subsys/fs/shell.c
@@ -442,16 +442,15 @@ static int cmd_mount_nffs(const struct shell *shell, size_t argc, char **argv)
nffs_mnt.mnt_point = (const char *)mntpt;
flash_dev = device_get_binding(CONFIG_FS_NFFS_FLASH_DEV_NAME);
if (!flash_dev) {
shell_error(shell,
"Error in device_get_binding, while mounting nffs fs");
shell_error(shell, "nffs device %s not found",
CONFIG_FS_NFFS_FLASH_DEV_NAME);
return -ENOEXEC;
}

nffs_mnt.storage_dev = flash_dev;
res = fs_mount(&nffs_mnt);
if (res != 0) {
shell_error(shell,
"Error mounting fat fs.Error Code [%d]", res);
shell_error(shell, "Error mounting nffs: %d", res);
return -ENOEXEC;
}

0 comments on commit 56886b0

Please sign in to comment.
You can’t perform that action at this time.