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:
parent
fa2539bf83
commit
4cea8b94e5
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue