mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-25 06:00:43 +00:00
i2c: tegra: dump alen in debug statements
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>
This commit is contained in:
parent
981b14f01a
commit
ad3091ad03
1 changed files with 4 additions and 4 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue