diff options
author | Alexander Stein <alexander.stein@ew.tq-group.com> | 2024-07-05 15:27:24 +0200 |
---|---|---|
committer | Fabio Estevam <festevam@gmail.com> | 2024-07-06 13:11:40 -0300 |
commit | d0e4f56c4793a24e4ee8300320fe53d627d5a234 (patch) | |
tree | 1c25bdaed78df9089a2ef53221ad0f064823d09e | |
parent | 2aba1de6b5e76a697b17761dde14166a4d0b8cba (diff) | |
download | u-boot-d0e4f56c4793a24e4ee8300320fe53d627d5a234.tar.gz u-boot-d0e4f56c4793a24e4ee8300320fe53d627d5a234.tar.bz2 u-boot-d0e4f56c4793a24e4ee8300320fe53d627d5a234.zip |
mmc: fsl_esdhc_imx: Fix error message
Add missing newline character and also add the return code of
regulator_set_value() to the output.
Signed-off-by: Alexander Stein <alexander.stein@ew.tq-group.com>
-rw-r--r-- | drivers/mmc/fsl_esdhc_imx.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mmc/fsl_esdhc_imx.c b/drivers/mmc/fsl_esdhc_imx.c index a9b8d7dd67..03de7dcd50 100644 --- a/drivers/mmc/fsl_esdhc_imx.c +++ b/drivers/mmc/fsl_esdhc_imx.c @@ -766,7 +766,7 @@ static int esdhc_set_voltage(struct mmc *mmc) ret = regulator_set_value(priv->vqmmc_dev, 3300000); if (ret) { - printf("Setting to 3.3V error"); + printf("Setting to 3.3V error: %d\n", ret); return -EIO; } mdelay(5); @@ -784,7 +784,7 @@ static int esdhc_set_voltage(struct mmc *mmc) ret = regulator_set_value(priv->vqmmc_dev, 1800000); if (ret) { - printf("Setting to 1.8V error"); + printf("Setting to 1.8V error: %d\n", ret); return -EIO; } } |