Skip to contentSkip to conversation

cmd_ubifs: normalize 'file not found' errors

PATCH New Luka Perkov 2 participants 6 messages Oct 9, 2013 – Nov 8, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/3 cmd_ubifs: normalize 'file not found' errors

From: Tim Harvey <[email protected]>

---
 common/cmd_ubifs.c | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)
common/cmd_ubifs.c +8 -4
index eba54fd..d9af023 100644
@@ -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
#1 lore raw

PATCH 2/3 cmd_reiser: normalize 'file not found' errors

---
 common/cmd_reiser.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
common/cmd_reiser.c +1 -1
index b9d2449..8871564 100644
@@ -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
#2 lore raw

PATCH 2/3 cmd_reiser: normalize 'file not found' errors

Quoted 1 line · Luka Perkov

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>
#3 lore raw

PATCH 3/3 cmd_zfs: normalize 'file not found' errors

In reply to Luka Perkov
---
 common/cmd_zfs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
common/cmd_zfs.c +1 -1
index 9110868..0aed29e 100644
@@ -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
#4 lore raw

PATCH 3/3 cmd_zfs: normalize 'file not found' errors

Quoted 1 line · Luka Perkov

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>
#5 lore raw

PATCH 1/3 cmd_ubifs: normalize 'file not found' errors

In reply to Luka Perkov
Quoted 3 lines · Luka Perkov

From: 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>