提交 6457af5f 编写于 作者: I Ian Pickworth 提交者: Mauro Carvalho Chehab

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: NIan Pickworth <ian@pickworth.me.uk>
Signed-off-by: NMichael Krufky <mkrufky@linuxtv.org>
Signed-off-by: NMauro Carvalho Chehab <mchehab@infradead.org>
上级 dadaff2d
...@@ -243,7 +243,7 @@ static int pinnsat_pll_init(struct dvb_frontend* fe) ...@@ -243,7 +243,7 @@ static int pinnsat_pll_init(struct dvb_frontend* fe)
bttv_gpio_enable(card->bttv_nr, 1, 1); /* output */ bttv_gpio_enable(card->bttv_nr, 1, 1); /* output */
bttv_write_gpio(card->bttv_nr, 1, 1); /* relay on */ bttv_write_gpio(card->bttv_nr, 1, 1); /* relay on */
return 0; return 0;
} }
......
...@@ -918,9 +918,9 @@ static int get_control(struct cx88_core *core, struct v4l2_control *ctl) ...@@ -918,9 +918,9 @@ static int get_control(struct cx88_core *core, struct v4l2_control *ctl)
ctl->value = ((value + (c->off << c->shift)) & c->mask) >> c->shift; ctl->value = ((value + (c->off << c->shift)) & c->mask) >> c->shift;
break; break;
} }
printk("get_control id=0x%X reg=0x%02x val=0x%02x (mask 0x%02x)%s\n", dprintk(1,"get_control id=0x%X(%s) ctrl=0x%02x, reg=0x%02x val=0x%02x (mask 0x%02x)%s\n",
ctl->id, c->reg, ctl->value, ctl->id, c->v.name, ctl->value, c->reg,
c->mask, c->sreg ? " [shadowed]" : ""); value,c->mask, c->sreg ? " [shadowed]" : "");
return 0; return 0;
} }
...@@ -969,9 +969,9 @@ static int set_control(struct cx88_core *core, struct v4l2_control *ctl) ...@@ -969,9 +969,9 @@ static int set_control(struct cx88_core *core, struct v4l2_control *ctl)
value = ((ctl->value - c->off) << c->shift) & c->mask; value = ((ctl->value - c->off) << c->shift) & c->mask;
break; break;
} }
printk("set_control id=0x%X reg=0x%02x val=0x%02x (mask 0x%02x)%s\n", dprintk(1,"set_control id=0x%X(%s) ctrl=0x%02x, reg=0x%02x val=0x%02x (mask 0x%02x)%s\n",
ctl->id, c->reg, value, ctl->id, c->v.name, ctl->value, c->reg, value,
mask, c->sreg ? " [shadowed]" : ""); mask, c->sreg ? " [shadowed]" : "");
if (c->sreg) { if (c->sreg) {
cx_sandor(c->sreg, c->reg, mask, value); cx_sandor(c->sreg, c->reg, mask, value);
} else { } else {
...@@ -1252,7 +1252,7 @@ int cx88_do_ioctl(struct inode *inode, struct file *file, int radio, ...@@ -1252,7 +1252,7 @@ int cx88_do_ioctl(struct inode *inode, struct file *file, int radio,
{ {
int err; int err;
dprintk( 1, "CORE IOCTL: 0x%x\n", cmd ); dprintk(2, "CORE IOCTL: 0x%x\n", cmd );
if (video_debug > 1) if (video_debug > 1)
v4l_print_ioctl(core->name,cmd); v4l_print_ioctl(core->name,cmd);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册