Skip to contentSkip to conversation

spl: spl_mmc: Disambiguate error message

PATCH In review Fabio Estevam 2 participants 3 messages Apr 21, 2016 – Apr 26, 2016

lore
Share & tools
lore
#0 lore raw

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
index 1a10c55..8e3837f 100644
@@ -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
#1 lore raw

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.

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>
#2 lore raw
In reply to Fabio Estevam
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.

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>