提交 4942744f 编写于 作者: M Michael Krufky 提交者: 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: NMichael Krufky <mkrufky@linuxtv.org>
Signed-off-by: NMauro Carvalho Chehab <mchehab@infradead.org>
上级 7a06f3f2
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册