spl: spl_mmc: Disambiguate error message
authorFabio Estevam <fabio.estevam@nxp.com>
Thu, 21 Apr 2016 02:12:04 +0000 (23:12 -0300)
committerTom Rini <trini@konsulko.com>
Mon, 25 Apr 2016 19:10:36 +0000 (15:10 -0400)
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>
common/spl/spl_mmc.c

index 1a10c555f42273b6720cde20a93eb2ffc3a9da81..8d588d13a365cae687437a58606069f27509d465 100644 (file)
@@ -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;
        }