Commit 0d3e6fe7 authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab

[media] drxk: Improve a few debug messages

Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 79636fa2
...@@ -368,10 +368,10 @@ static int i2c_read(struct i2c_adapter *adap, ...@@ -368,10 +368,10 @@ static int i2c_read(struct i2c_adapter *adap,
} }
if (debug > 2) { if (debug > 2) {
int i; int i;
dprintk(2, ": read from "); dprintk(2, ": read from");
for (i = 0; i < len; i++) for (i = 0; i < len; i++)
printk(KERN_CONT " %02x", msg[i]); printk(KERN_CONT " %02x", msg[i]);
printk(KERN_CONT "Value = "); printk(KERN_CONT ", value = ");
for (i = 0; i < alen; i++) for (i = 0; i < alen; i++)
printk(KERN_CONT " %02x", answ[i]); printk(KERN_CONT " %02x", answ[i]);
printk(KERN_CONT "\n"); printk(KERN_CONT "\n");
...@@ -947,6 +947,9 @@ static int GetDeviceCapabilities(struct drxk_state *state) ...@@ -947,6 +947,9 @@ static int GetDeviceCapabilities(struct drxk_state *state)
status = read32(state, SIO_TOP_JTAGID_LO__A, &sioTopJtagidLo); status = read32(state, SIO_TOP_JTAGID_LO__A, &sioTopJtagidLo);
if (status < 0) if (status < 0)
goto error; goto error;
printk(KERN_ERR "drxk: status = 0x%08x\n", sioTopJtagidLo);
/* driver 0.9.0 */ /* driver 0.9.0 */
switch ((sioTopJtagidLo >> 29) & 0xF) { switch ((sioTopJtagidLo >> 29) & 0xF) {
case 0: case 0:
...@@ -964,7 +967,8 @@ static int GetDeviceCapabilities(struct drxk_state *state) ...@@ -964,7 +967,8 @@ static int GetDeviceCapabilities(struct drxk_state *state)
default: default:
state->m_deviceSpin = DRXK_SPIN_UNKNOWN; state->m_deviceSpin = DRXK_SPIN_UNKNOWN;
status = -EINVAL; status = -EINVAL;
printk(KERN_ERR "drxk: Spin unknown\n"); printk(KERN_ERR "drxk: Spin %d unknown\n",
(sioTopJtagidLo >> 29) & 0xF);
goto error2; goto error2;
} }
switch ((sioTopJtagidLo >> 12) & 0xFF) { switch ((sioTopJtagidLo >> 12) & 0xFF) {
...@@ -6452,6 +6456,8 @@ struct dvb_frontend *drxk_attach(const struct drxk_config *config, ...@@ -6452,6 +6456,8 @@ struct dvb_frontend *drxk_attach(const struct drxk_config *config,
goto error; goto error;
*fe_t = &state->t_frontend; *fe_t = &state->t_frontend;
printk(KERN_INFO "drxk: frontend initialized.\n");
return &state->c_frontend; return &state->c_frontend;
error: error:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment