]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
i2c: tegra: dump alen in debug statements
authorStephen Warren <swarren@nvidia.com>
Wed, 25 Jun 2014 16:57:29 +0000 (10:57 -0600)
committerHeiko Schocher <hs@denx.de>
Thu, 3 Jul 2014 04:29:39 +0000 (06:29 +0200)
Since tegra_i2c_{read,write}'s debug() call dumps the chip address, dump
the address length (alen) too, so the address value can be correctly
interpreted.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Reviewed-by: Yen Lin <yelin@nvidia.com>
drivers/i2c/tegra_i2c.c

index a62f30e66ce19e5ec79595c663c5fcd664f472ad..257b72f0f7cdf71b40afc10a2d18a9d48fdf700d 100644 (file)
@@ -548,8 +548,8 @@ static int tegra_i2c_read(struct i2c_adapter *adap, uchar chip, uint addr,
        uint offset;
        int i;
 
-       debug("i2c_read: chip=0x%x, addr=0x%x, len=0x%x\n",
-                               chip, addr, len);
+       debug("i2c_read: chip=0x%x, addr=0x%x, alen=0x%x len=0x%x\n",
+             chip, addr, alen, len);
        bus = tegra_i2c_get_bus(adap);
        if (!bus)
                return 1;
@@ -587,8 +587,8 @@ static int tegra_i2c_write(struct i2c_adapter *adap, uchar chip, uint addr,
        uint offset;
        int i;
 
-       debug("i2c_write: chip=0x%x, addr=0x%x, len=0x%x\n",
-                               chip, addr, len);
+       debug("i2c_write: chip=0x%x, addr=0x%x, alen=0x%x len=0x%x\n",
+             chip, addr, alen, len);
        bus = tegra_i2c_get_bus(adap);
        if (!bus)
                return 1;