V4L/DVB (6491): tuner: prevent repeated "type set" message unless debug is enabled
authorMichael Krufky <mkrufky@linuxtv.org>
Tue, 30 Oct 2007 12:44:12 +0000 (09:44 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Fri, 25 Jan 2008 21:01:51 +0000 (19:01 -0200)
The tuner sub-module will usually log its type during its _attach() function,
then tuner-core reports which type was attached when control is returned.

In most cases, we expect to see the same message reported from both locations.
We only need to see this second message if debug is enabled.

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

index cd5f0d8e693c556f4e070afdac3429c86d58b278..b92efe0460f34d322b236206aa8386b9a03b385d 100644 (file)
@@ -366,7 +366,7 @@ static void set_type(struct i2c_client *c, unsigned int type,
                t->fe.analog_demod_priv = t;
        }
 
-       tuner_info("type set to %s\n", t->i2c->name);
+       tuner_dbg("type set to %s\n", t->i2c->name);
 
        if (t->mode_mask == T_UNINITIALIZED)
                t->mode_mask = new_mode_mask;