media: dvb: warning about dvb frequency limits produces too much noise [Linux 5.2]

media: dvb: warning about dvb frequency limits produces too much noise [Linux 5.2]

This Linux kernel change "media: dvb: warning about dvb frequency limits produces too much noise" is included in the Linux 5.2 release. This change is authored by Sean Young <sean [at] mess.org> on Mon May 20 15:43:49 2019 -0400. The commit for this change in Linux stable tree is eb96e57 (patch).

media: dvb: warning about dvb frequency limits produces too much noise

This can be a debug message. Favour dev_dbg() over dprintk() as this is
already used much more than dprintk().

dvb_frontend: dvb_frontend_get_frequency_limits: frequency interval: tuner: 45000000...860000000, frontend: 44250000...867250000

Fixes: 00ecd6bc7128 ("media: dvb_frontend: add debug message for frequency intervals")

Cc: <[email protected]> # 5.0
Signed-off-by: Sean Young <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>

There are 2 lines of Linux source code added/deleted in this change. Code changes to Linux kernel are as follows.

 drivers/media/dvb-core/dvb_frontend.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/media/dvb-core/dvb_frontend.c b/drivers/media/dvb-core/dvb_frontend.c
index fbdb4ec..7402c98 100644
--- a/drivers/media/dvb-core/dvb_frontend.c
+++ b/drivers/media/dvb-core/dvb_frontend.c
@@ -917,7 +917,7 @@ static void dvb_frontend_get_frequency_limits(struct dvb_frontend *fe,
             "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",
+   dev_dbg(fe->dvb->device, "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 */

Leave a Reply

Your email address will not be published. Required fields are marked *