summaryrefslogtreecommitdiff
path: root/linux
diff options
context:
space:
mode:
authorMichael Krufky <mkrufky@kernellabs.com>2009-09-05 18:01:56 -0400
committerMichael Krufky <mkrufky@kernellabs.com>2009-09-05 18:01:56 -0400
commitdf4fd3a3c2986681ed1e054a79bf723734d3130e (patch)
tree2aedae6cd92f784010d139cb0a0278ff60252e12 /linux
parent75c4b5f8a5f960190e5f8df3d9e0fbd615313bd2 (diff)
downloadmediapointer-dvb-s2-df4fd3a3c2986681ed1e054a79bf723734d3130e.tar.gz
mediapointer-dvb-s2-df4fd3a3c2986681ed1e054a79bf723734d3130e.tar.bz2
tda18271: improve error log in function tda18271_write_regs
From: Michael Krufky <mkrufky@kernellabs.com> Display function parameters, idx and len, in error log. Priority: normal Signed-off-by: Michael Krufky <mkrufky@kernellabs.com>
Diffstat (limited to 'linux')
-rw-r--r--linux/drivers/media/common/tuners/tda18271-common.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/linux/drivers/media/common/tuners/tda18271-common.c b/linux/drivers/media/common/tuners/tda18271-common.c
index a49facb7b..4092bcf01 100644
--- a/linux/drivers/media/common/tuners/tda18271-common.c
+++ b/linux/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);
}