Skip to content

Commit

Permalink
V4L/DVB (6491): tuner: prevent repeated "type set" message unless deb…
Browse files Browse the repository at this point in the history
…ug 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>
  • Loading branch information
Michael Krufky authored and Mauro Carvalho Chehab committed Jan 25, 2008
1 parent 7a06f3f commit 4942744
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/media/video/tuner-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 4942744

Please sign in to comment.