]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
mmc: fsl_esdhc_imx: Fix error message
authorAlexander Stein <alexander.stein@ew.tq-group.com>
Fri, 5 Jul 2024 13:27:24 +0000 (15:27 +0200)
committerFabio Estevam <festevam@gmail.com>
Sat, 6 Jul 2024 16:11:40 +0000 (13:11 -0300)
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>
drivers/mmc/fsl_esdhc_imx.c

index a9b8d7dd67f33d43e09e008f4d55ff5293a51ac0..03de7dcd505e9fe876c780a6f5878fe4994d7086 100644 (file)
@@ -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;
                        }
                }