aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2011-07-21 22:30:27 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2011-07-27 17:56:03 -0300
commitf07a0bc111829707f1277c19467a7129ddb5aeb1 (patch)
treebac2b5ef80309cd108786060241e4bf5415dd76b /drivers/media
parente716adacef360fde5a5327ee95aa33dfca276c61 (diff)
downloadkernel_goldelico_gta04-f07a0bc111829707f1277c19467a7129ddb5aeb1.zip
kernel_goldelico_gta04-f07a0bc111829707f1277c19467a7129ddb5aeb1.tar.gz
kernel_goldelico_gta04-f07a0bc111829707f1277c19467a7129ddb5aeb1.tar.bz2
[media] drxk: Fix read debug message
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media')
-rw-r--r--drivers/media/dvb/frontends/drxk_hard.c15
1 files changed, 6 insertions, 9 deletions
diff --git a/drivers/media/dvb/frontends/drxk_hard.c b/drivers/media/dvb/frontends/drxk_hard.c
index 5b22c1f..85332e8 100644
--- a/drivers/media/dvb/frontends/drxk_hard.c
+++ b/drivers/media/dvb/frontends/drxk_hard.c
@@ -355,13 +355,7 @@ static int i2c_read(struct i2c_adapter *adap,
{.addr = adr, .flags = I2C_M_RD,
.buf = answ, .len = alen}
};
- dprintk(3, ":");
- if (debug > 2) {
- int i;
- for (i = 0; i < len; i++)
- printk(KERN_CONT " %02x", msg[i]);
- printk(KERN_CONT "\n");
- }
+
status = i2c_transfer(adap, msgs, 2);
if (status != 2) {
if (debug > 2)
@@ -374,9 +368,12 @@ static int i2c_read(struct i2c_adapter *adap,
}
if (debug > 2) {
int i;
- printk(KERN_CONT ": Read ");
+ dprintk(2, ": read from ");
for (i = 0; i < len; i++)
printk(KERN_CONT " %02x", msg[i]);
+ printk(KERN_CONT "Value = ");
+ for (i = 0; i < alen; i++)
+ printk(KERN_CONT " %02x", answ[i]);
printk(KERN_CONT "\n");
}
return 0;
@@ -1075,7 +1072,7 @@ static int GetDeviceCapabilities(struct drxk_state *state)
state->m_hasIRQN = false;
break;
default:
- printk(KERN_ERR "drxk: DeviceID not supported = %02x\n",
+ printk(KERN_ERR "drxk: DeviceID 0x%02x not supported\n",
((sioTopJtagidLo >> 12) & 0xFF));
status = -EINVAL;
goto error2;