[U-Boot] [PATCH] spl: spl_mmc: Disambiguate error message

From: Fabio Estevam fabio.estevam@nxp.com
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 --- common/spl/spl_mmc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/common/spl/spl_mmc.c b/common/spl/spl_mmc.c index 1a10c55..8e3837f 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; }

On Wed, Apr 20, 2016 at 11:12:04PM -0300, Fabio Estevam wrote:
From: Fabio Estevam fabio.estevam@nxp.com
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

On Wed, Apr 20, 2016 at 11:12:04PM -0300, Fabio Estevam wrote:
From: Fabio Estevam fabio.estevam@nxp.com
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
Applied to u-boot/master, thanks!
participants (2)
-
Fabio Estevam
-
Tom Rini