Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;