diff options
author | Michael Krufky <mkrufky@kernellabs.com> | 2009-09-05 18:01:56 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-09-18 23:13:48 -0400 |
commit | 650901c0b6917505e81f6593d230ea3cdcf6518a (patch) | |
tree | 6682e2575a5460d4848620581c1abc21f6070a6d /drivers | |
parent | d5abef6be1715040ac50e834bc042031f7613fa9 (diff) |
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 <mkrufky@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/media/common/tuners/tda18271-common.c | 3 |
1 files changed, 2 insertions, 1 deletions
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) | |||
210 | tda18271_i2c_gate_ctrl(fe, 0); | 210 | tda18271_i2c_gate_ctrl(fe, 0); |
211 | 211 | ||
212 | if (ret != 1) | 212 | if (ret != 1) |
213 | tda_err("ERROR: i2c_transfer returned: %d\n", ret); | 213 | tda_err("ERROR: idx = 0x%x, len = %d, " |
214 | "i2c_transfer returned: %d\n", idx, len, ret); | ||
214 | 215 | ||
215 | return (ret == 1 ? 0 : ret); | 216 | return (ret == 1 ? 0 : ret); |
216 | } | 217 | } |