diff options
author | Alex Kiernan | 2018-09-18 08:11:55 +0000 |
---|---|---|
committer | Tom Rini | 2018-09-30 13:00:34 -0400 |
commit | aa608b6c9981f41d1e82fb311523f570e5e112ab (patch) | |
tree | 06e84635d6981fda96c660e3c0098b4eb1d4f205 /common | |
parent | a71e907c4dbeee69b9b70e266ccc1e7d760ef9c1 (diff) |
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.
Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Diffstat (limited to 'common')
-rw-r--r-- | common/spl/spl_mmc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/common/spl/spl_mmc.c b/common/spl/spl_mmc.c index 75c41598e6b..4d55dccc922 100644 --- a/common/spl/spl_mmc.c +++ b/common/spl/spl_mmc.c @@ -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; } |