]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
V4L/DVB (7840): tda18271: make tda18271_set_standby_mode less verbose for basic debug
authorMichael Krufky <mkrufky@linuxtv.org>
Sun, 4 May 2008 21:18:48 +0000 (18:18 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Wed, 14 May 2008 05:54:05 +0000 (02:54 -0300)
Only show debug from tda18271_set_standby_mode if DBG_ADV is set.

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/common/tuners/tda18271-common.c

index 9001d422cc1ccebe5a765045b372aa5bb6cd27f2..d6938fc2c4c69000a8b5527f71b6e24a9bee2c05 100644 (file)
@@ -486,7 +486,8 @@ int tda18271_set_standby_mode(struct dvb_frontend *fe,
        struct tda18271_priv *priv = fe->tuner_priv;
        unsigned char *regs = priv->tda18271_regs;
 
-       tda_dbg("sm = %d, sm_lt = %d, sm_xt = %d\n", sm, sm_lt, sm_xt);
+       if (tda18271_debug & DBG_ADV)
+               tda_dbg("sm = %d, sm_lt = %d, sm_xt = %d\n", sm, sm_lt, sm_xt);
 
        regs[R_EP3]  &= ~0xe0; /* clear sm, sm_lt, sm_xt */
        regs[R_EP3]  |= sm    ? (1 << 7) : 0 |