Skip to contentSkip to conversation

spl: mmc: Report device number when we fail

PATCH In review Alex Kiernan 2 participants 2 messages Sep 18, 2018 – Sep 30, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 spl: mmc: Report device number when we fail

If we fail to find the MMC boot device, report the number of the one we were looking for in the error to aid diagnosis.

---

 common/spl/spl_mmc.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
common/spl/spl_mmc.c +2 -1
index 0b2f059570..39d5ac1530 100644
@@ -140,7 +140,8 @@ static int spl_mmc_find_device(struct mmc **mmcp, u32 boot_device)
 #endif
 	if (err) {
 #ifdef CONFIG_SPL_LIBCOMMON_SUPPORT
-		printf("spl: could not find mmc device. error: %d\n", err);
+		printf("spl: could not find mmc device %d. error: %d\n",
+		       mmc_dev, err);
 #endif
 		return err;
 	}
Signature · 1 line
2.17.1
#1 lore raw
Quoted 4 lines · Alex Kiernan

If we fail to find the MMC boot device, report the number of the one we were looking for in the error to aid diagnosis.

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180930/2f82a619/attachment.sig>