omap: xload: Make error more specific
Subsystems (2)
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.
Signed-off-by Sanjeev Premi <[email protected]>
--- arch/arm/mach-omap/xload.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
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);return NULL ; }
Signature · 7 lines
1.7.0.4 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
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.Signed-off-by Sanjeev Premi <[email protected]>--- arch/arm/mach-omap/xload.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)arch/arm/mach-omap/xload.c +0
-0
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