]> err.no Git - linux-2.6/commit
V4L/DVB (7748): tuner-core: some adjustments at tuner logs, if debug enabled
authorMauro Carvalho Chehab <mchehab@infradead.org>
Sat, 26 Apr 2008 14:29:34 +0000 (11:29 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Sat, 26 Apr 2008 12:29:57 +0000 (09:29 -0300)
commitb9ef6bbbbeaf65c6a452fe3c75c196f86e0d984d
treecd71dd92430bece65a52932f83d561a8a41893c3
parent0e3cbe81d52d18d83d068935512bd623a8765c12
V4L/DVB (7748): tuner-core: some adjustments at tuner logs, if debug enabled

set_addr log were almost useless: discarded SET_TYPE_ADDR commands weren't
reported.

This patch changed set_addr printk to print a message only if set_addr is
wrong.

It also fix printk at set_type, since, if an attach were failing, nothing
were reported.

With the current code, working or not, a call to set_addr will produce a debug
printk.

also, set_type() were producing a false error message on tuner_xc2028, since
it were requesting for setting a frequency on a place where firmware name
weren't set yet.

Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/video/tuner-core.c