V4L/DVB (6491): tuner: prevent repeated "type set" message unless debug is enabled

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>
This commit is contained in:
Michael Krufky 2007-10-30 09:44:12 -03:00 committed by Mauro Carvalho Chehab
parent 7a06f3f2aa
commit 4942744f93

View 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;