summaryrefslogtreecommitdiffstats
path: root/common/spl/spl_mmc.c
diff options
context:
space:
mode:
authorFabio Estevam <fabio.estevam@nxp.com>2016-04-20 23:12:04 -0300
committerTom Rini <trini@konsulko.com>2016-04-25 15:10:36 -0400
commit5bbf4099098afb3e63574d05629e29b795d08c05 (patch)
tree65437041528ead6ce88b8b23e9692334366ae6d8 /common/spl/spl_mmc.c
parent532d5203e972092cb1029e49d906f28a0895ca39 (diff)
downloadtalos-obmc-uboot-5bbf4099098afb3e63574d05629e29b795d08c05.tar.gz
talos-obmc-uboot-5bbf4099098afb3e63574d05629e29b795d08c05.zip
spl: spl_mmc: Disambiguate error message
The error message "spl: mmc block read error" may come from two different functions, so we should better annotate the function name where the error comes from to help debugging. Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com> Reviewed-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'common/spl/spl_mmc.c')
-rw-r--r--common/spl/spl_mmc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/spl/spl_mmc.c b/common/spl/spl_mmc.c
index 1a10c555f4..8d588d13a3 100644
--- a/common/spl/spl_mmc.c
+++ b/common/spl/spl_mmc.c
@@ -83,7 +83,7 @@ static int mmc_load_image_raw_sector(struct mmc *mmc, unsigned long sector)
end:
if (ret) {
#ifdef CONFIG_SPL_LIBCOMMON_SUPPORT
- puts("spl: mmc block read error\n");
+ puts("mmc_load_image_raw_sector: mmc block read error\n");
#endif
return -1;
}
@@ -186,7 +186,7 @@ static int mmc_load_image_raw_os(struct mmc *mmc)
(void *) CONFIG_SYS_SPL_ARGS_ADDR);
if (count == 0) {
#ifdef CONFIG_SPL_LIBCOMMON_SUPPORT
- puts("spl: mmc block read error\n");
+ puts("mmc_load_image_raw_os: mmc block read error\n");
#endif
return -1;
}
OpenPOWER on IntegriCloud