V4L/DVB (12868): tda18271: improve error log in function tda18271_write_regs
authorMichael Krufky <mkrufky@kernellabs.com>
Sat, 5 Sep 2009 22:01:56 +0000 (19:01 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sat, 19 Sep 2009 03:13:48 +0000 (00:13 -0300)
Display function parameters, idx and len, in error log.

Signed-off-by: Michael Krufky <mkrufky@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/common/tuners/tda18271-common.c

index fc76c30e24f10818f850c3d1b2b49daf441c1b65..155c93eb75dad06f5e5ab0cfa0816504b76669db 100644 (file)
@@ -210,7 +210,8 @@ int tda18271_write_regs(struct dvb_frontend *fe, int idx, int len)
        tda18271_i2c_gate_ctrl(fe, 0);
 
        if (ret != 1)
-               tda_err("ERROR: i2c_transfer returned: %d\n", ret);
+               tda_err("ERROR: idx = 0x%x, len = %d, "
+                       "i2c_transfer returned: %d\n", idx, len, ret);
 
        return (ret == 1 ? 0 : ret);
 }