diff options
author | Jagan Teki <jagan@amarulasolutions.com> | 2016-12-06 00:00:58 +0100 |
---|---|---|
committer | Stefano Babic <sbabic@denx.de> | 2016-12-16 17:15:27 +0100 |
commit | 65c92e4f39d1e61b7c5f6b086f1fdf5fac72d6e0 (patch) | |
tree | ad3ddf7232bfd7f32c21733f13790afb161cb485 /drivers | |
parent | 72c8c10b7357b9edf344fb06fa4bc968edfa4156 (diff) | |
download | u-boot-65c92e4f39d1e61b7c5f6b086f1fdf5fac72d6e0.zip u-boot-65c92e4f39d1e61b7c5f6b086f1fdf5fac72d6e0.tar.gz u-boot-65c92e4f39d1e61b7c5f6b086f1fdf5fac72d6e0.tar.bz2 |
i2c: mxc: Print hex instead of decimal for bus address
Better to print the hex value for bus address instead of
decimal, for more readbility on bus addressing.
Before:
------
U-Boot> i2c dev 1
Setting bus to 1
i2c bus 1 at 35274752, no gpio pinctrl state.
After:
------
U-Boot> i2c dev 1
Setting bus to 1
i2c bus 1 at 0x21a4000, no gpio pinctrl state.
Cc: Simon Glass <sjg@chromium.org>
Cc: Heiko Schocher <hs@denx.de>
Cc: Peng Fan <peng.fan@nxp.com>
Cc: Michael Trimarchi <michael@amarulasolutions.com>
Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
Acked-by: Heiko Schocher <hs@denx.de>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/i2c/mxc_i2c.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/i2c/mxc_i2c.c b/drivers/i2c/mxc_i2c.c index 6247d33..03a5ce9 100644 --- a/drivers/i2c/mxc_i2c.c +++ b/drivers/i2c/mxc_i2c.c @@ -775,7 +775,7 @@ static int mxc_i2c_probe(struct udevice *bus) */ ret = fdt_stringlist_search(fdt, node, "pinctrl-names", "gpio"); if (ret < 0) { - dev_info(dev, "i2c bus %d at %lu, no gpio pinctrl state.\n", bus->seq, i2c_bus->base); + dev_info(dev, "i2c bus %d at 0x%2lx, no gpio pinctrl state.\n", bus->seq, i2c_bus->base); } else { ret = gpio_request_by_name_nodev(fdt, node, "scl-gpios", 0, &i2c_bus->scl_gpio, |