summaryrefslogtreecommitdiff
path: root/linux/drivers/media
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2008-11-13 19:12:43 -0200
committerMauro Carvalho Chehab <mchehab@redhat.com>2008-11-13 19:12:43 -0200
commite9589d5e9a7ce0950ee6150ce06349dac22fd8e2 (patch)
tree55525a8b496c0ef1e318b1599472cc3f804c6f03 /linux/drivers/media
parent7e22300bf63145f172fc8ea241447c828b564cf4 (diff)
downloadmediapointer-dvb-s2-e9589d5e9a7ce0950ee6150ce06349dac22fd8e2.tar.gz
mediapointer-dvb-s2-e9589d5e9a7ce0950ee6150ce06349dac22fd8e2.tar.bz2
tvaudio: Improve debug msg by printing something more human
From: Mauro Carvalho Chehab <mchehab@redhat.com> Priority: normal Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'linux/drivers/media')
-rw-r--r--linux/drivers/media/video/tvaudio.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/linux/drivers/media/video/tvaudio.c b/linux/drivers/media/video/tvaudio.c
index fcf5a5314..e6a52962e 100644
--- a/linux/drivers/media/video/tvaudio.c
+++ b/linux/drivers/media/video/tvaudio.c
@@ -37,6 +37,7 @@
#include <media/tvaudio.h>
#include <media/v4l2-common.h>
+#include <media/v4l2-ioctl.h>
#include <media/v4l2-chip-ident.h>
#include <media/v4l2-i2c-drv-legacy.h>
@@ -1744,7 +1745,10 @@ static int chip_command(struct i2c_client *client,
struct CHIPSTATE *chip = i2c_get_clientdata(client);
struct CHIPDESC *desc = chip->desc;
- v4l_dbg(1, debug, chip->c, "%s: chip_command 0x%x\n", chip->c->name, cmd);
+ if (debug > 0) {
+ v4l_i2c_print_ioctl(chip->c, cmd);
+ printk("\n");
+ }
switch (cmd) {
case AUDC_SET_RADIO: