Commit 36dba13b authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab

[media] tda18271: use prefix on all printk messages

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: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
parent 5049d31b
...@@ -18,11 +18,12 @@ ...@@ -18,11 +18,12 @@
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/ */
#include <linux/delay.h>
#include <linux/videodev2.h>
#include "tda18271-priv.h" #include "tda18271-priv.h"
#include "tda8290.h" #include "tda8290.h"
#include <linux/delay.h>
#include <linux/videodev2.h>
int tda18271_debug; int tda18271_debug;
module_param_named(debug, tda18271_debug, int, 0644); module_param_named(debug, tda18271_debug, int, 0644);
MODULE_PARM_DESC(debug, "set debug level " MODULE_PARM_DESC(debug, "set debug level "
...@@ -646,7 +647,7 @@ static int tda18271_calc_rf_filter_curve(struct dvb_frontend *fe) ...@@ -646,7 +647,7 @@ static int tda18271_calc_rf_filter_curve(struct dvb_frontend *fe)
unsigned int i; unsigned int i;
int ret; int ret;
tda_info("tda18271: performing RF tracking filter calibration\n"); tda_info("performing RF tracking filter calibration\n");
/* wait for die temperature stabilization */ /* wait for die temperature stabilization */
msleep(200); msleep(200);
...@@ -692,12 +693,12 @@ static int tda18271c2_rf_cal_init(struct dvb_frontend *fe) ...@@ -692,12 +693,12 @@ static int tda18271c2_rf_cal_init(struct dvb_frontend *fe)
if (tda_fail(ret)) if (tda_fail(ret))
goto fail; goto fail;
tda_info("tda18271: RF tracking filter calibration complete\n"); tda_info("RF tracking filter calibration complete\n");
priv->cal_initialized = true; priv->cal_initialized = true;
goto end; goto end;
fail: fail:
tda_info("tda18271: RF tracking filter calibration failed!\n"); tda_info("RF tracking filter calibration failed!\n");
end: end:
return ret; return ret;
} }
......
...@@ -21,6 +21,8 @@ ...@@ -21,6 +21,8 @@
#ifndef __TDA18271_PRIV_H__ #ifndef __TDA18271_PRIV_H__
#define __TDA18271_PRIV_H__ #define __TDA18271_PRIV_H__
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
#include <linux/kernel.h> #include <linux/kernel.h>
#include <linux/types.h> #include <linux/types.h>
#include <linux/mutex.h> #include <linux/mutex.h>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment