Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=cf04d29c4868a783b3e994e4a19f78ce22ba2d93
Commit:     cf04d29c4868a783b3e994e4a19f78ce22ba2d93
Parent:     c353f42f752d9b47661ff83b947986f6de948b61
Author:     Michael Krufky <[EMAIL PROTECTED]>
AuthorDate: Wed Jan 9 00:34:30 2008 -0300
Committer:  Mauro Carvalho Chehab <[EMAIL PROTECTED]>
CommitDate: Fri Jan 25 19:04:44 2008 -0200

    V4L/DVB (6988): tda18271: give calibration debug a separate debug mask
    
    We don't usually want to see the calibration debug messages, but sometimes
    it is useful.  Assign it to a separate debug mask.
    
    Signed-off-by: Michael Krufky <[EMAIL PROTECTED]>
    Signed-off-by: Mauro Carvalho Chehab <[EMAIL PROTECTED]>
---
 drivers/media/dvb/frontends/tda18271-fe.c   |    6 +++---
 drivers/media/dvb/frontends/tda18271-priv.h |    2 ++
 2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/drivers/media/dvb/frontends/tda18271-fe.c 
b/drivers/media/dvb/frontends/tda18271-fe.c
index 7d21881..0b41b95 100644
--- a/drivers/media/dvb/frontends/tda18271-fe.c
+++ b/drivers/media/dvb/frontends/tda18271-fe.c
@@ -25,7 +25,7 @@
 int tda18271_debug;
 module_param_named(debug, tda18271_debug, int, 0644);
 MODULE_PARM_DESC(debug, "set debug level "
-                "(info=1, map=2, reg=4, adv=8 (or-able))");
+                "(info=1, map=2, reg=4, adv=8, cal=16 (or-able))");
 
 static LIST_HEAD(tda18271_list);
 static DEFINE_MUTEX(tda18271_list_mutex);
@@ -459,7 +459,7 @@ static int tda18271_powerscan(struct dvb_frontend *fe,
        } else
                bcal = 0;
 
-       tda_dbg("bcal = %d, freq_in = %d, freq_out = %d (freq = %d)\n",
+       tda_cal("bcal = %d, freq_in = %d, freq_out = %d (freq = %d)\n",
                bcal, *freq_in, *freq_out, freq);
 
        return bcal;
@@ -522,7 +522,7 @@ static int tda18271_rf_tracking_filters_init(struct 
dvb_frontend *fe, u32 freq)
        for (rf = RF1; rf <= RF3; rf++) {
                if (0 == rf_default[rf])
                        return 0;
-               tda_dbg("freq = %d, rf = %d\n", freq, rf);
+               tda_cal("freq = %d, rf = %d\n", freq, rf);
 
                /* look for optimized calibration frequency */
                bcal = tda18271_powerscan(fe, &rf_default[rf], &rf_freq[rf]);
diff --git a/drivers/media/dvb/frontends/tda18271-priv.h 
b/drivers/media/dvb/frontends/tda18271-priv.h
index 5c04d63..080efb3 100644
--- a/drivers/media/dvb/frontends/tda18271-priv.h
+++ b/drivers/media/dvb/frontends/tda18271-priv.h
@@ -130,6 +130,7 @@ extern int tda18271_debug;
 #define DBG_MAP  2
 #define DBG_REG  4
 #define DBG_ADV  8
+#define DBG_CAL  16
 
 #define tda_printk(kern, fmt, arg...) \
        printk(kern "%s: " fmt, __FUNCTION__, ##arg)
@@ -144,6 +145,7 @@ extern int tda18271_debug;
 #define tda_dbg(fmt, arg...)  dprintk(KERN_DEBUG, DBG_INFO, fmt, ##arg)
 #define tda_map(fmt, arg...)  dprintk(KERN_DEBUG, DBG_MAP,  fmt, ##arg)
 #define tda_reg(fmt, arg...)  dprintk(KERN_DEBUG, DBG_REG,  fmt, ##arg)
+#define tda_cal(fmt, arg...)  dprintk(KERN_DEBUG, DBG_CAL,  fmt, ##arg)
 
 /*---------------------------------------------------------------------*/
 
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to