Skip to contentSkip to conversation

omap: xload: Make error more specific

PATCH Superseded Sanjeev Premi 2 participants 2 messages Feb 9, 2012 – Feb 10, 2012

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 omap: xload: Make error more specific

Current message indicating that SD card isn't
mounted is misleading if the card has only one
partition.

Updated the message to indicate that mounting
the specific partition failed.

---
 arch/arm/mach-omap/xload.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
arch/arm/mach-omap/xload.c +1 -1
index a52a8ba..bf7fd06 100644
@@ -40,7 +40,7 @@ void *omap_xload_boot_mmc(void)
 
 	ret = mount("disk0.0", "fat", "/");
 	if (ret) {
-		printf("mounting sd card failed with %d\n", ret);
+		printf("Unable to mount disk0.0 (%d)\n", ret);
 		return NULL;
 	}
 
Signature · 7 lines
1.7.0.4


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
#1 lore raw
Quoted 17 lines · Sanjeev Premi

Current message indicating that SD card isn't
mounted is misleading if the card has only one
partition.

Updated the message to indicate that mounting
the specific partition failed.

---
 arch/arm/mach-omap/xload.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
arch/arm/mach-omap/xload.c +0 -0
index a52a8ba..bf7fd06 100644

arch/arm/mach-omap/xload.c void *omap_xload_boot_mmc(void) · line 43

Quoted 5 lines
arch/arm/mach-omap/xload.c +1 -1
@@ -40,7 +40,7 @@ void *omap_xload_boot_mmc(void)
 
 	ret = mount("disk0.0", "fat", "/");
 	if (ret) {
-		printf("mounting sd card failed with %d\n", ret);
+		printf("Unable to mount disk0.0 (%d)\n", ret);

Small nitpick: Can we have a const char *diskdev = "disk0.0" and use it for mount and error message? This makes sure we keep both in sync.

Sascha

Signature · 9 lines
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox