1
0
mirror of https://xff.cz/git/u-boot/ synced 2025-09-03 09:42:22 +02:00

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>
This commit is contained in:
Alexander Stein
2024-07-05 15:27:24 +02:00
committed by Fabio Estevam
parent 2aba1de6b5
commit d0e4f56c47

View File

@@ -766,7 +766,7 @@ static int esdhc_set_voltage(struct mmc *mmc)
ret = regulator_set_value(priv->vqmmc_dev, ret = regulator_set_value(priv->vqmmc_dev,
3300000); 3300000);
if (ret) { if (ret) {
printf("Setting to 3.3V error"); printf("Setting to 3.3V error: %d\n", ret);
return -EIO; return -EIO;
} }
mdelay(5); mdelay(5);
@@ -784,7 +784,7 @@ static int esdhc_set_voltage(struct mmc *mmc)
ret = regulator_set_value(priv->vqmmc_dev, ret = regulator_set_value(priv->vqmmc_dev,
1800000); 1800000);
if (ret) { if (ret) {
printf("Setting to 1.8V error"); printf("Setting to 1.8V error: %d\n", ret);
return -EIO; return -EIO;
} }
} }