]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
i2c: mxc_i2c: Use hex notation for the base address
authorFabio Estevam <festevam@denx.de>
Tue, 3 Jan 2023 19:03:44 +0000 (16:03 -0300)
committerHeiko Schocher <hs@denx.de>
Mon, 13 Feb 2023 08:57:30 +0000 (09:57 +0100)
Printing the I2C controller base address in decimal notation
is not helpful.

Change it to hex notation, which is the standard format found
in the Reference Manual and devicetree.

Signed-off-by: Fabio Estevam <festevam@denx.de>
Acked-by: Dhruva Gole <d-gole@ti.com>
Reviewed-by: Heiko Schocher <hs@denx.de>
drivers/i2c/mxc_i2c.c

index 86b9fb57c832cb78250aabe79b2bbb307650b379..d501133a0c8fc67124b58fc33325f392d38ba817 100644 (file)
@@ -938,7 +938,7 @@ static int mxc_i2c_probe(struct udevice *bus)
         * we can set pinmux here in probe function.
         */
 
-       debug("i2c : controller bus %d at %lu , speed %d: ",
+       debug("i2c : controller bus %d at 0x%lx , speed %d: ",
              dev_seq(bus), i2c_bus->base,
              i2c_bus->speed);