From: Michael Krufky Date: Tue, 30 Oct 2007 12:44:12 +0000 (-0300) Subject: V4L/DVB (6491): tuner: prevent repeated "type set" message unless debug is enabled X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=4942744f93884cb462400c66258c0013bea65dcf;p=openwrt%2Fstaging%2Fblogic.git 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 Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/video/tuner-core.c b/drivers/media/video/tuner-core.c index cd5f0d8e693c..b92efe0460f3 100644 --- a/drivers/media/video/tuner-core.c +++ b/drivers/media/video/tuner-core.c @@ -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;