summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorMarc Ferland <ferlandm@amotus.ca>2020-12-21 09:50:16 -0500
committerStefano Babic <sbabic@denx.de>2020-12-26 14:56:09 +0100
commit26c7048dd9d04158a23e9dbfe3f0dccc4febcaed (patch)
treeb454fa8413e1e39486597d28433640490b9a2a2b /drivers
parente6abe163bf0b81d2ff6cfbc849252bb30b0d6a19 (diff)
downloadu-boot-26c7048dd9d04158a23e9dbfe3f0dccc4febcaed.tar.gz
i2c: mxc_i2c: improve error message readability
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/i2c/mxc_i2c.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/i2c/mxc_i2c.c b/drivers/i2c/mxc_i2c.c
index 7609594bd0..d486dab043 100644
--- a/drivers/i2c/mxc_i2c.c
+++ b/drivers/i2c/mxc_i2c.c
@@ -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;
}