power: regulator: replace printf() with pr_err()
authorShree Ramamoorthy <s-ramamoorthy@ti.com>
Wed, 18 Dec 2024 17:12:35 +0000 (11:12 -0600)
committerJaehoon Chung <jh80.chung@samsung.com>
Mon, 13 Jan 2025 22:44:30 +0000 (07:44 +0900)
Replace printf() with pr_err() because pr_err() has a uniform print format
and takes into consideration the log levels supported.

Signed-off-by: Shree Ramamoorthy <s-ramamoorthy@ti.com>
Reviewed-by: Jaehoon Chung <jh80.chung@samsung.com>
drivers/power/regulator/tps65219_regulator.c

index b7124fe..4b0fb20 100644 (file)
@@ -250,7 +250,7 @@ static int tps65219_ldo_probe(struct udevice *dev)
        /* idx must be in 1..TPS65219_LDO_NUM */
        idx = dev->driver_data;
        if (idx < 1 || idx > TPS65219_LDO_NUM) {
-               printf("Wrong ID for regulator\n");
+               pr_err("Wrong ID for regulator\n");
                return -EINVAL;
        }
 
@@ -271,7 +271,7 @@ static int tps65219_buck_probe(struct udevice *dev)
        /* idx must be in 1..TPS65219_BUCK_NUM */
        idx = dev->driver_data;
        if (idx < 1 || idx > TPS65219_BUCK_NUM) {
-               printf("Wrong ID for regulator\n");
+               pr_err("Wrong ID for regulator\n");
                return -EINVAL;
        }