diff options
author | Tim Harvey <tharvey@gateworks.com> | 2013-10-10 03:32:26 +0400 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2013-11-09 00:25:13 +0400 |
commit | 7cdebc3289b05b355dcd718688cf3c0cc83ddb25 (patch) | |
tree | b8ff371c3bd03c4dcd2f4a8e9d7cc1cc39ab4ebd /common | |
parent | 643aae1406c93ddc64fcf8c136b47cdffd9c8ccd (diff) | |
download | u-boot-7cdebc3289b05b355dcd718688cf3c0cc83ddb25.tar.xz |
cmd_ubifs: normalize 'file not found' errors
Signed-off-by: Tim Harvey <tharvey@gateworks.com>
Diffstat (limited to 'common')
-rw-r--r-- | common/cmd_ubifs.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/common/cmd_ubifs.c b/common/cmd_ubifs.c index eba54fd004..d9af023d70 100644 --- a/common/cmd_ubifs.c +++ b/common/cmd_ubifs.c @@ -104,8 +104,10 @@ int do_ubifs_ls(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) debug("Using filename %s\n", filename); ret = ubifs_ls(filename); - if (ret) - printf("%s not found!\n", filename); + if (ret) { + printf("** File not found %s **\n", filename); + ret = CMD_RET_FAILURE; + } return ret; } @@ -140,8 +142,10 @@ int do_ubifs_load(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) debug("Loading file '%s' to address 0x%08x (size %d)\n", filename, addr, size); ret = ubifs_load(filename, addr, size); - if (ret) - printf("%s not found!\n", filename); + if (ret) { + printf("** File not found %s **\n", filename); + ret = CMD_RET_FAILURE; + } return ret; } |