mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-23 13:56:20 +00:00
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>
This commit is contained in:
parent
e6abe163bf
commit
26c7048dd9
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue