Commit 4942744f authored by Michael Krufky's avatar Michael Krufky Committed by Mauro Carvalho Chehab

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: default avatarMichael Krufky <mkrufky@linuxtv.org>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@infradead.org>
parent 7a06f3f2
...@@ -366,7 +366,7 @@ static void set_type(struct i2c_client *c, unsigned int type, ...@@ -366,7 +366,7 @@ static void set_type(struct i2c_client *c, unsigned int type,
t->fe.analog_demod_priv = t; 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) if (t->mode_mask == T_UNINITIALIZED)
t->mode_mask = new_mode_mask; t->mode_mask = new_mode_mask;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment