aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2011-07-21 21:30:27 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2011-07-27 16:56:03 -0400
commitf07a0bc111829707f1277c19467a7129ddb5aeb1 (patch)
treebac2b5ef80309cd108786060241e4bf5415dd76b /drivers/media
parente716adacef360fde5a5327ee95aa33dfca276c61 (diff)
[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 5b22c1f9c266..85332e830447 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,
355 {.addr = adr, .flags = I2C_M_RD, 355 {.addr = adr, .flags = I2C_M_RD,
356 .buf = answ, .len = alen} 356 .buf = answ, .len = alen}
357 }; 357 };
358 dprintk(3, ":"); 358
359 if (debug > 2) {
360 int i;
361 for (i = 0; i < len; i++)
362 printk(KERN_CONT " %02x", msg[i]);
363 printk(KERN_CONT "\n");
364 }
365 status = i2c_transfer(adap, msgs, 2); 359 status = i2c_transfer(adap, msgs, 2);
366 if (status != 2) { 360 if (status != 2) {
367 if (debug > 2) 361 if (debug > 2)
@@ -374,9 +368,12 @@ static int i2c_read(struct i2c_adapter *adap,
374 } 368 }
375 if (debug > 2) { 369 if (debug > 2) {
376 int i; 370 int i;
377 printk(KERN_CONT ": Read "); 371 dprintk(2, ": read from ");
378 for (i = 0; i < len; i++) 372 for (i = 0; i < len; i++)
379 printk(KERN_CONT " %02x", msg[i]); 373 printk(KERN_CONT " %02x", msg[i]);
374 printk(KERN_CONT "Value = ");
375 for (i = 0; i < alen; i++)
376 printk(KERN_CONT " %02x", answ[i]);
380 printk(KERN_CONT "\n"); 377 printk(KERN_CONT "\n");
381 } 378 }
382 return 0; 379 return 0;
@@ -1075,7 +1072,7 @@ static int GetDeviceCapabilities(struct drxk_state *state)
1075 state->m_hasIRQN = false; 1072 state->m_hasIRQN = false;
1076 break; 1073 break;
1077 default: 1074 default:
1078 printk(KERN_ERR "drxk: DeviceID not supported = %02x\n", 1075 printk(KERN_ERR "drxk: DeviceID 0x%02x not supported\n",
1079 ((sioTopJtagidLo >> 12) & 0xFF)); 1076 ((sioTopJtagidLo >> 12) & 0xFF));
1080 status = -EINVAL; 1077 status = -EINVAL;
1081 goto error2; 1078 goto error2;