Skip to content

Commit

Permalink
i2c: mxc_i2c: improve error message readability
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Marc Ferland authored and sbabic committed Dec 26, 2020
1 parent e6abe16 commit 26c7048
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/i2c/mxc_i2c.c
Expand Up @@ -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;
}
Expand Down

0 comments on commit 26c7048

Please sign in to comment.