mirror of
https://github.com/AsahiLinux/u-boot
synced 2025-02-17 22:49:02 +00:00
cmd_ubifs: normalize 'file not found' errors
Signed-off-by: Tim Harvey <tharvey@gateworks.com>
This commit is contained in:
parent
643aae1406
commit
7cdebc3289
1 changed files with 8 additions and 4 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue