From: Michael Krufky Date: Sat, 5 Sep 2009 22:01:56 +0000 (-0300) Subject: V4L/DVB (12868): tda18271: improve error log in function tda18271_write_regs X-Git-Tag: MMI-PSA29.97-13-9~26891^2~187 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=650901c0b6917505e81f6593d230ea3cdcf6518a;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git V4L/DVB (12868): tda18271: improve error log in function tda18271_write_regs Display function parameters, idx and len, in error log. Signed-off-by: Michael Krufky Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/common/tuners/tda18271-common.c b/drivers/media/common/tuners/tda18271-common.c index fc76c30e24f1..155c93eb75da 100644 --- a/drivers/media/common/tuners/tda18271-common.c +++ b/drivers/media/common/tuners/tda18271-common.c @@ -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); }