mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-11-01 17:08:10 +00:00
[media] dvb-frontends/stv0367: print CPAMP status only if stv_debug is enabled
The CPAMP log lines generated in stv0367_ter_check_cpamp() are printed everytime tuning succeeds or fails, quite cluttering the normal kernel log. Use dprintk() instead of printk(KERN_ERR...) so that if the information is needed, it'll be printed when the stv_debug modparam is enabled. Signed-off-by: Daniel Scheller <d.scheller@gmx.net> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
This commit is contained in:
parent
f61c2991e6
commit
df5a38e913
1 changed files with 2 additions and 2 deletions
|
@ -1262,9 +1262,9 @@ stv0367_ter_signal_type stv0367ter_check_cpamp(struct stv0367_state *state,
|
|||
dprintk("******last CPAMPvalue= %d at wd=%d\n", CPAMPvalue, wd);
|
||||
if (CPAMPvalue < CPAMPMin) {
|
||||
CPAMPStatus = FE_TER_NOCPAMP;
|
||||
printk(KERN_ERR "CPAMP failed\n");
|
||||
dprintk("%s: CPAMP failed\n", __func__);
|
||||
} else {
|
||||
printk(KERN_ERR "CPAMP OK !\n");
|
||||
dprintk("%s: CPAMP OK !\n", __func__);
|
||||
CPAMPStatus = FE_TER_CPAMPOK;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue