omap: xload: Make error more specific
Subsystems (2)
PATCH v2 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]>
---
Changes since v1:
Use variable diskdev to ensure that name of device used in the mount() and error message continue to remain in sync.
arch/arm/mach-omap/xload.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-)
arch/arm/mach-omap/xload.c +3 -2
@@ -37,10 +37,11 @@ void *omap_xload_boot_mmc(void)int ret;void *buf;int len; +const char *diskdev ="disk0.0" ; - ret =mount ("disk0.0" ,"fat" ,"/" ); + ret =mount (diskdev,"fat" ,"/" );if (ret) { -printf ("mounting sd card failed with %d\n" , ret); +printf ("Unable to mount %s (%d)\n" , diskdev, ret);return NULL ; }
Signature · 7 lines
1.7.0.4 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
Sascha Hauer
AppliedQuoted 7 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.
Quoted 6 lines
Signed-off-by Sanjeev Premi <[email protected]>---
Changes since v1:
Use variable diskdev to ensure that name of device used in themount()and error message continue to remain in sync.
Applied, thanks
Sascha
Quoted 32 lines
arch/arm/mach-omap/xload.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-)arch/arm/mach-omap/xload.c +3
-2@@ -37,10 +37,11 @@ void *omap_xload_boot_mmc(void)int ret;void *buf;int len; +const char *diskdev ="disk0.0" ; - ret =mount ("disk0.0" ,"fat" ,"/" ); + ret =mount (diskdev,"fat" ,"/" );if (ret) { -printf ("mounting sd card failed with %d\n" , ret); +printf ("Unable to mount %s (%d)\n" , diskdev, ret);return NULL ; }Signature · 7 lines
1.7.0.4 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
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