* print frequency debug only if dvb_frontend_debug is enables
@ 2019-03-28 10:44 Peter Holik
2019-04-03 20:11 ` Sean Young
0 siblings, 1 reply; 2+ messages in thread
From: Peter Holik @ 2019-03-28 10:44 UTC (permalink / raw)
To: linux-media
[-- Attachment #1: Type: text/plain, Size: 209 bytes --]
Hi!
Every transponder switch from my vdr causes this debug message "frequency interval: tuner: ..., frontend: ..." in syslog.
I think this should only happen if dvb_frontend_debug parameter is set.
cu Peter
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: dvb_frontend.c.diff --]
[-- Type: text/x-patch; name="dvb_frontend.c.diff", Size: 592 bytes --]
--- a/drivers/media/dvb-core/dvb_frontend.c
+++ b/drivers/media/dvb-core/dvb_frontend.c
@@ -917,8 +917,9 @@
"DVB: adapter %i frontend %u frequency limits undefined - fix the driver\n",
fe->dvb->num, fe->id);
- dprintk("frequency interval: tuner: %u...%u, frontend: %u...%u",
- tuner_min, tuner_max, frontend_min, frontend_max);
+ if (dvb_frontend_debug)
+ dprintk("frequency interval: tuner: %u...%u, frontend: %u...%u",
+ tuner_min, tuner_max, frontend_min, frontend_max);
/* If the standard is for satellite, convert frequencies to kHz */
switch (c->delivery_system) {
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: print frequency debug only if dvb_frontend_debug is enables
2019-03-28 10:44 print frequency debug only if dvb_frontend_debug is enables Peter Holik
@ 2019-04-03 20:11 ` Sean Young
0 siblings, 0 replies; 2+ messages in thread
From: Sean Young @ 2019-04-03 20:11 UTC (permalink / raw)
To: Peter Holik; +Cc: linux-media
On Thu, Mar 28, 2019 at 11:44:00AM +0100, Peter Holik wrote:
> Hi!
>
> Every transponder switch from my vdr causes this debug message "frequency interval: tuner: ..., frontend: ..." in syslog.
>
> I think this should only happen if dvb_frontend_debug parameter is set.
>
> cu Peter
You need a Signed-off-by: line.
Please read
https://www.kernel.org/doc/html/latest/process/submitting-patches.html
For how a patch should be submitted.
> --- a/drivers/media/dvb-core/dvb_frontend.c
> +++ b/drivers/media/dvb-core/dvb_frontend.c
> @@ -917,8 +917,9 @@
> "DVB: adapter %i frontend %u frequency limits undefined - fix the driver\n",
> fe->dvb->num, fe->id);
>
> - dprintk("frequency interval: tuner: %u...%u, frontend: %u...%u",
> - tuner_min, tuner_max, frontend_min, frontend_max);
> + if (dvb_frontend_debug)
> + dprintk("frequency interval: tuner: %u...%u, frontend: %u...%u",
> + tuner_min, tuner_max, frontend_min, frontend_max);
This should be replaced with dev_dbg(). Actually, all instances dprintk()
should be replaced with dev_dbg() and dvb_frontend_debug removed.
> /* If the standard is for satellite, convert frequencies to kHz */
> switch (c->delivery_system) {
Sean
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-04-03 20:11 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-28 10:44 print frequency debug only if dvb_frontend_debug is enables Peter Holik
2019-04-03 20:11 ` Sean Young
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.