[media] tda18271: use prefix on all printk messages
authorMauro Carvalho Chehab <mchehab@s-opensource.com>
Mon, 5 Sep 2016 10:21:18 +0000 (07:21 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Mon, 5 Sep 2016 18:26:28 +0000 (15:26 -0300)
Some messages have a hardcoded prefix; others not. Use the
pr_fmt() to ensure that all messages will use the same prefix.

Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/tuners/tda18271-fe.c
drivers/media/tuners/tda18271-priv.h

index f8620741bb5fe0979cfc5b2a9935decfc27ad888..2d50e8b1dce123031e198205cb33743b2d4d4f83 100644 (file)
     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 */
 
-#include <linux/delay.h>
-#include <linux/videodev2.h>
 #include "tda18271-priv.h"
 #include "tda8290.h"
 
+#include <linux/delay.h>
+#include <linux/videodev2.h>
+
 int tda18271_debug;
 module_param_named(debug, tda18271_debug, int, 0644);
 MODULE_PARM_DESC(debug, "set debug level "
@@ -646,7 +647,7 @@ static int tda18271_calc_rf_filter_curve(struct dvb_frontend *fe)
        unsigned int i;
        int ret;
 
-       tda_info("tda18271: performing RF tracking filter calibration\n");
+       tda_info("performing RF tracking filter calibration\n");
 
        /* wait for die temperature stabilization */
        msleep(200);
@@ -692,12 +693,12 @@ static int tda18271c2_rf_cal_init(struct dvb_frontend *fe)
        if (tda_fail(ret))
                goto fail;
 
-       tda_info("tda18271: RF tracking filter calibration complete\n");
+       tda_info("RF tracking filter calibration complete\n");
 
        priv->cal_initialized = true;
        goto end;
 fail:
-       tda_info("tda18271: RF tracking filter calibration failed!\n");
+       tda_info("RF tracking filter calibration failed!\n");
 end:
        return ret;
 }
index cc80f544af345ea74be42aa6e86469ff05a6b465..0bcc735a042735bd9af701a8ee351a158325fdbf 100644 (file)
@@ -21,6 +21,8 @@
 #ifndef __TDA18271_PRIV_H__
 #define __TDA18271_PRIV_H__
 
+#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+
 #include <linux/kernel.h>
 #include <linux/types.h>
 #include <linux/mutex.h>