diff options
author | Ian Pickworth <ian@pickworth.me.uk> | 2006-02-26 22:09:45 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2006-02-26 22:09:45 -0500 |
commit | 6457af5f7eac49ff8e072fdc98c986d4ac874b04 (patch) | |
tree | c262704a5f183ee1866879597394b904d59845b8 /drivers | |
parent | dadaff2db46aae917ccdbceb2cd2ecac75767435 (diff) |
V4L/DVB (3393): Cx88: reduce excessive logging
- fix temporary debug code by changing printk to dprintk at level 1.
- move CORE_IOCTL messages from level 1 to level 2.
- this should help with selective debugging,
while not filling people's logs up during normal use.
Signed-off-by: Ian Pickworth <ian@pickworth.me.uk>
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/media/dvb/bt8xx/dvb-bt8xx.c | 2 | ||||
-rw-r--r-- | drivers/media/video/cx88/cx88-video.c | 14 |
2 files changed, 8 insertions, 8 deletions
diff --git a/drivers/media/dvb/bt8xx/dvb-bt8xx.c b/drivers/media/dvb/bt8xx/dvb-bt8xx.c index b8eab69d2c5..baa8227ef87 100644 --- a/drivers/media/dvb/bt8xx/dvb-bt8xx.c +++ b/drivers/media/dvb/bt8xx/dvb-bt8xx.c | |||
@@ -243,7 +243,7 @@ static int pinnsat_pll_init(struct dvb_frontend* fe) | |||
243 | 243 | ||
244 | bttv_gpio_enable(card->bttv_nr, 1, 1); /* output */ | 244 | bttv_gpio_enable(card->bttv_nr, 1, 1); /* output */ |
245 | bttv_write_gpio(card->bttv_nr, 1, 1); /* relay on */ | 245 | bttv_write_gpio(card->bttv_nr, 1, 1); /* relay on */ |
246 | 246 | ||
247 | return 0; | 247 | return 0; |
248 | } | 248 | } |
249 | 249 | ||
diff --git a/drivers/media/video/cx88/cx88-video.c b/drivers/media/video/cx88/cx88-video.c index d15ef158ac8..7bbc81fb43b 100644 --- a/drivers/media/video/cx88/cx88-video.c +++ b/drivers/media/video/cx88/cx88-video.c | |||
@@ -918,9 +918,9 @@ static int get_control(struct cx88_core *core, struct v4l2_control *ctl) | |||
918 | ctl->value = ((value + (c->off << c->shift)) & c->mask) >> c->shift; | 918 | ctl->value = ((value + (c->off << c->shift)) & c->mask) >> c->shift; |
919 | break; | 919 | break; |
920 | } | 920 | } |
921 | printk("get_control id=0x%X reg=0x%02x val=0x%02x (mask 0x%02x)%s\n", | 921 | dprintk(1,"get_control id=0x%X(%s) ctrl=0x%02x, reg=0x%02x val=0x%02x (mask 0x%02x)%s\n", |
922 | ctl->id, c->reg, ctl->value, | 922 | ctl->id, c->v.name, ctl->value, c->reg, |
923 | c->mask, c->sreg ? " [shadowed]" : ""); | 923 | value,c->mask, c->sreg ? " [shadowed]" : ""); |
924 | return 0; | 924 | return 0; |
925 | } | 925 | } |
926 | 926 | ||
@@ -969,9 +969,9 @@ static int set_control(struct cx88_core *core, struct v4l2_control *ctl) | |||
969 | value = ((ctl->value - c->off) << c->shift) & c->mask; | 969 | value = ((ctl->value - c->off) << c->shift) & c->mask; |
970 | break; | 970 | break; |
971 | } | 971 | } |
972 | printk("set_control id=0x%X reg=0x%02x val=0x%02x (mask 0x%02x)%s\n", | 972 | dprintk(1,"set_control id=0x%X(%s) ctrl=0x%02x, reg=0x%02x val=0x%02x (mask 0x%02x)%s\n", |
973 | ctl->id, c->reg, value, | 973 | ctl->id, c->v.name, ctl->value, c->reg, value, |
974 | mask, c->sreg ? " [shadowed]" : ""); | 974 | mask, c->sreg ? " [shadowed]" : ""); |
975 | if (c->sreg) { | 975 | if (c->sreg) { |
976 | cx_sandor(c->sreg, c->reg, mask, value); | 976 | cx_sandor(c->sreg, c->reg, mask, value); |
977 | } else { | 977 | } else { |
@@ -1252,7 +1252,7 @@ int cx88_do_ioctl(struct inode *inode, struct file *file, int radio, | |||
1252 | { | 1252 | { |
1253 | int err; | 1253 | int err; |
1254 | 1254 | ||
1255 | dprintk( 1, "CORE IOCTL: 0x%x\n", cmd ); | 1255 | dprintk(2, "CORE IOCTL: 0x%x\n", cmd ); |
1256 | if (video_debug > 1) | 1256 | if (video_debug > 1) |
1257 | v4l_print_ioctl(core->name,cmd); | 1257 | v4l_print_ioctl(core->name,cmd); |
1258 | 1258 | ||