9
0
Fork 0

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>
This commit is contained in:
Sanjeev Premi 2012-02-13 15:39:01 +05:30 committed by Sascha Hauer
parent fa2539bf83
commit 4cea8b94e5
1 changed files with 3 additions and 2 deletions

View File

@ -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;
}