Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[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>

authored by

Daniel Scheller and committed by
Mauro Carvalho Chehab
df5a38e9 f61c2991

+2 -2
+2 -2
drivers/media/dvb-frontends/stv0367.c
··· 1262 1262 dprintk("******last CPAMPvalue= %d at wd=%d\n", CPAMPvalue, wd); 1263 1263 if (CPAMPvalue < CPAMPMin) { 1264 1264 CPAMPStatus = FE_TER_NOCPAMP; 1265 - printk(KERN_ERR "CPAMP failed\n"); 1265 + dprintk("%s: CPAMP failed\n", __func__); 1266 1266 } else { 1267 - printk(KERN_ERR "CPAMP OK !\n"); 1267 + dprintk("%s: CPAMP OK !\n", __func__); 1268 1268 CPAMPStatus = FE_TER_CPAMPOK; 1269 1269 } 1270 1270