]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
i2c: mxc_i2c: improve error message readability
authorMarc Ferland <ferlandm@amotus.ca>
Mon, 21 Dec 2020 14:50:16 +0000 (09:50 -0500)
committerStefano Babic <sbabic@denx.de>
Sat, 26 Dec 2020 13:56:09 +0000 (14:56 +0100)
Use 0x%2lx to print the i2c bus base address in hexadecimal format
instead of printing as an integer.

Signed-off-by: Marc Ferland <ferlandm@amotus.ca>
Reviewed-by: Fabio Estevam <festevam@gmail.com>
drivers/i2c/mxc_i2c.c

index 7609594bd01467d494fa4f847e1232f1af9e87ef..d486dab0439e024d96090eb5ed87dc5f91e49fce 100644 (file)
@@ -954,7 +954,7 @@ static int mxc_i2c_probe(struct udevice *bus)
                    !dm_gpio_is_valid(&i2c_bus->scl_gpio) ||
                    ret || ret2) {
                        dev_err(bus,
-                               "i2c bus %d at %lu, fail to request scl/sda gpio\n",
+                               "i2c bus %d at 0x%2lx, fail to request scl/sda gpio\n",
                                bus->seq, i2c_bus->base);
                        return -EINVAL;
                }