]> Git Repo - J-u-boot.git/commitdiff
pinctrl: single: fix debug messages formatting
authorDario Binacchi <[email protected]>
Sun, 11 Apr 2021 07:39:42 +0000 (09:39 +0200)
committerLokesh Vutla <[email protected]>
Mon, 12 Apr 2021 05:47:15 +0000 (11:17 +0530)
The dev_dbg(dev, "  reg/val 0x%pa/0x%08x\n", &reg, val); prints the 'reg'
address preceded by the prefix 0x0x instead of 0x. This because the
printf '%pa' format specifier already prepends the prefix '0x' to the
address displayed.

Signed-off-by: Dario Binacchi <[email protected]>
Reviewed-by: Pratyush Yadav <[email protected]>
drivers/pinctrl/pinctrl-single.c

index 935b5e920d7a64b6d4f0d6ceaea279ade1d19906..cec00e289c3eabeae8554d7f48fdbc8d63c76ea5 100644 (file)
@@ -101,7 +101,7 @@ static int single_configure_pins(struct udevice *dev,
                                 pdata->width);
                        continue;
                }
-               dev_dbg(dev, "  reg/val 0x%pa/0x%08x\n", &reg, val);
+               dev_dbg(dev, "  reg/val %pa/0x%08x\n", &reg, val);
        }
        return 0;
 }
@@ -140,7 +140,7 @@ static int single_configure_bits(struct udevice *dev,
                                 pdata->width);
                        continue;
                }
-               dev_dbg(dev, "  reg/val 0x%pa/0x%08x\n", &reg, val);
+               dev_dbg(dev, "  reg/val %pa/0x%08x\n", &reg, val);
        }
        return 0;
 }
This page took 0.036461 seconds and 4 git commands to generate.