diff options
author | Antti Palosaari <crope@iki.fi> | 2014-12-11 13:44:51 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2014-12-30 07:46:52 -0500 |
commit | 93009ca673394f0bfb99aa8d8e76f3581a2b38e8 (patch) | |
tree | 13125cbd88c768871f80ea1e8505e917e144f440 /drivers/media/pci | |
parent | a593f2cfc1b89d0342b82242ed3d31c1a4494f24 (diff) |
[media] cx23885: fix I2C scan printout
1) I2C slave addresses were printed so called 8-bit format. Use
standard 7-bit notation.
2) I2C slave address was printed with hex formatted without leading
zeros, which makes output one digit shorter in a case of address
fit to one hex digit. Use 4 char wide hex number with leading zeros
as usually used for I2C slave addresses.
Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'drivers/media/pci')
-rw-r--r-- | drivers/media/pci/cx23885/cx23885-i2c.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/pci/cx23885/cx23885-i2c.c b/drivers/media/pci/cx23885/cx23885-i2c.c index fd71306af6e2..1135ea3f6ce5 100644 --- a/drivers/media/pci/cx23885/cx23885-i2c.c +++ b/drivers/media/pci/cx23885/cx23885-i2c.c | |||
@@ -300,8 +300,8 @@ static void do_i2c_scan(char *name, struct i2c_client *c) | |||
300 | rc = i2c_master_recv(c, &buf, 0); | 300 | rc = i2c_master_recv(c, &buf, 0); |
301 | if (rc < 0) | 301 | if (rc < 0) |
302 | continue; | 302 | continue; |
303 | printk(KERN_INFO "%s: i2c scan: found device @ 0x%x [%s]\n", | 303 | printk(KERN_INFO "%s: i2c scan: found device @ 0x%04x [%s]\n", |
304 | name, i << 1, i2c_devs[i] ? i2c_devs[i] : "???"); | 304 | name, i, i2c_devs[i] ? i2c_devs[i] : "???"); |
305 | } | 305 | } |
306 | } | 306 | } |
307 | 307 | ||