diff options
author | Jaehoon Chung <jh80.chung@samsung.com> | 2020-11-17 07:04:59 +0900 |
---|---|---|
committer | Peng Fan <peng.fan@nxp.com> | 2020-11-28 10:43:42 +0800 |
commit | 58896458b70673a1401b60ba415c0158ae9d08cf (patch) | |
tree | b3f15ea9047b14821621610479d34a0ad19b693a /drivers/mmc/mmc.c | |
parent | 8ee802f899efb422cbd5dc51a734d735320e9999 (diff) | |
download | u-boot-58896458b70673a1401b60ba415c0158ae9d08cf.tar.gz u-boot-58896458b70673a1401b60ba415c0158ae9d08cf.tar.xz u-boot-58896458b70673a1401b60ba415c0158ae9d08cf.zip |
mmc: display an error number to debug
It's useful to know an error number when it's debugging.
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
Diffstat (limited to 'drivers/mmc/mmc.c')
-rw-r--r-- | drivers/mmc/mmc.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c index dbf365974d..54dcfb7003 100644 --- a/drivers/mmc/mmc.c +++ b/drivers/mmc/mmc.c @@ -2170,7 +2170,7 @@ static int mmc_select_mode_and_width(struct mmc *mmc, uint card_caps) err = mmc_execute_tuning(mmc, mwt->tuning); if (err) { - pr_debug("tuning failed\n"); + pr_debug("tuning failed : %d\n", err); goto error; } } @@ -2191,7 +2191,7 @@ error: } } - pr_err("unable to select a mode\n"); + pr_err("unable to select a mode : %d\n", err); return -ENOTSUPP; } @@ -2721,7 +2721,7 @@ static int mmc_power_on(struct mmc *mmc) int ret = regulator_set_enable(mmc->vmmc_supply, true); if (ret) { - puts("Error enabling VMMC supply\n"); + printf("Error enabling VMMC supply : %d\n", ret); return ret; } } @@ -2737,7 +2737,7 @@ static int mmc_power_off(struct mmc *mmc) int ret = regulator_set_enable(mmc->vmmc_supply, false); if (ret) { - pr_debug("Error disabling VMMC supply\n"); + pr_debug("Error disabling VMMC supply : %d\n", ret); return ret; } } @@ -2841,7 +2841,7 @@ retry: if (err) { #if !defined(CONFIG_SPL_BUILD) || defined(CONFIG_SPL_LIBCOMMON_SUPPORT) - pr_err("Card did not respond to voltage select!\n"); + pr_err("Card did not respond to voltage select! : %d\n", err); #endif return -EOPNOTSUPP; } |