spl: spl_mmc: Disambiguate error message
PATCH 1/1 spl: spl_mmc: Disambiguate error message
From: Fabio Estevam <[email protected]>
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.
--- common/spl/spl_mmc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
common/spl/spl_mmc.c +2 -2
@@ -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 ; }
Signature · 1 line
1.9.1
PATCH 1/1 spl: spl_mmc: Disambiguate error message
Quoted 7 lines · Fabio Estevam
From: Fabio Estevam <[email protected]>
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 <[email protected]>
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160421/83ab0597/attachment.sig>
Quoted 8 lines · Fabio Estevam
From: Fabio Estevam <[email protected]>
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 <[email protected]>Reviewed-by Tom Rini <[email protected]>
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: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160425/b30dd74f/attachment.sig>