cmd_ubifs: normalize 'file not found' errors
PATCH 1/3 cmd_ubifs: normalize 'file not found' errors
From: Tim Harvey <[email protected]>
Signed-off-by Tim Harvey <[email protected]>
--- common/cmd_ubifs.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-)
common/cmd_ubifs.c +8 -4
@@ -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; }
Signature · 1 line
1.8.4
PATCH 2/3 cmd_reiser: normalize 'file not found' errors
Signed-off-by Luka Perkov <[email protected]>
--- common/cmd_reiser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
common/cmd_reiser.c +1 -1
@@ -141,7 +141,7 @@ int do_reiserload (cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) filelen =reiserfs_open (filename);if (filelen <0 ) { -printf ("** File not found %s\n" , filename); +printf ("** File not found %s **\n" , filename);return 1 ; }if ((count < filelen) && (count !=0 )) {
Signature · 1 line
1.8.4
PATCH 2/3 cmd_reiser: normalize 'file not found' errors
Quoted 1 line · Luka Perkov
Signed-off-by Luka Perkov <[email protected]>
Applied to u-boot/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20131108/a5b46bc1/attachment.pgp>
PATCH 3/3 cmd_zfs: normalize 'file not found' errors
In reply to Luka PerkovSigned-off-by Luka Perkov <[email protected]>
--- common/cmd_zfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
common/cmd_zfs.c +1 -1
@@ -95,7 +95,7 @@ static int do_zfs_load(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]memset (&zfile,0 ,sizeof (zfile)); zfile.device = &vdev;if (zfs_open (&zfile, filename)) { -printf ("** File not found %s\n" , filename); +printf ("** File not found %s **\n" , filename);return 1 ; }
Signature · 1 line
1.8.4
PATCH 3/3 cmd_zfs: normalize 'file not found' errors
Quoted 1 line · Luka Perkov
Signed-off-by Luka Perkov <[email protected]>
Applied to u-boot/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20131108/a45f3f02/attachment.pgp>
PATCH 1/3 cmd_ubifs: normalize 'file not found' errors
In reply to Luka PerkovQuoted 3 lines · Luka Perkov
From: Tim Harvey <[email protected]>
Signed-off-by Tim Harvey <[email protected]>
Applied to u-boot/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20131108/47598491/attachment-0001.pgp>