diff options
author | Sanjeev Premi <premi@ti.com> | 2012-02-13 15:39:01 +0530 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2012-02-14 12:09:55 +0100 |
commit | 4cea8b94e53b3c48dc6632a6a33bd0c878413168 (patch) | |
tree | 7555aab13101e9bf53516a64f59815ed2e266bbf /arch/arm/mach-omap/xload.c | |
parent | fa2539bf83b76c5de6aeb41126588b227322100d (diff) | |
download | barebox-4cea8b94e53b3c48dc6632a6a33bd0c878413168.tar.gz barebox-4cea8b94e53b3c48dc6632a6a33bd0c878413168.tar.xz |
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 <premi@ti.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-omap/xload.c')
-rw-r--r-- | arch/arm/mach-omap/xload.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/arm/mach-omap/xload.c b/arch/arm/mach-omap/xload.c index a52a8ba58f..59f75e237a 100644 --- a/arch/arm/mach-omap/xload.c +++ b/arch/arm/mach-omap/xload.c @@ -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; } |