Commit 26c7048d authored by Marc Ferland's avatar Marc Ferland Committed by Stefano Babic
Browse files

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: default avatarMarc Ferland <ferlandm@amotus.ca>
Reviewed-by: default avatarFabio Estevam <festevam@gmail.com>
parent e6abe163
...@@ -954,7 +954,7 @@ static int mxc_i2c_probe(struct udevice *bus) ...@@ -954,7 +954,7 @@ static int mxc_i2c_probe(struct udevice *bus)
!dm_gpio_is_valid(&i2c_bus->scl_gpio) || !dm_gpio_is_valid(&i2c_bus->scl_gpio) ||
ret || ret2) { ret || ret2) {
dev_err(bus, 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); bus->seq, i2c_bus->base);
return -EINVAL; return -EINVAL;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment