summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2009-04-05 10:25:06 +0000
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-04-05 10:25:06 +0000
commitb16003f763962973b1ec89b94f4f1f063b25e957 (patch)
tree77f8d10ffe2f1ae76266ec5a5d56ef123198400f /linux/drivers/media/dvb
parent56e85790c8d7256d555de35a62fa0e13535f62fd (diff)
downloadmediapointer-dvb-s2-b16003f763962973b1ec89b94f4f1f063b25e957.tar.gz
mediapointer-dvb-s2-b16003f763962973b1ec89b94f4f1f063b25e957.tar.bz2
Siano: unified the debug filter module parameter (dvb and core)
From: Uri Shkolnik <urishk@yahoo.com> The sms_debug module parameter sets the debug filter for the smsmdtv module. It has been moved to the core component, and replace the smsdvb's. Priority: normal Signed-off-by: Uri Shkolnik <uris@siano-ms.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'linux/drivers/media/dvb')
-rw-r--r--linux/drivers/media/dvb/siano/smscoreapi.c4
-rw-r--r--linux/drivers/media/dvb/siano/smscoreapi.h3
-rw-r--r--linux/drivers/media/dvb/siano/smsdvb.c3
3 files changed, 4 insertions, 6 deletions
diff --git a/linux/drivers/media/dvb/siano/smscoreapi.c b/linux/drivers/media/dvb/siano/smscoreapi.c
index 9a9db2588..5cf5bb5d9 100644
--- a/linux/drivers/media/dvb/siano/smscoreapi.c
+++ b/linux/drivers/media/dvb/siano/smscoreapi.c
@@ -34,8 +34,8 @@
#include "smscoreapi.h"
#include "sms-cards.h"
-static int sms_dbg;
-module_param_named(debug, sms_dbg, int, 0644);
+int sms_debug;
+module_param_named(debug, sms_debug, int, 0644);
MODULE_PARM_DESC(debug, "set debug level (info=1, adv=2 (or-able))");
struct smscore_device_notifyee_t {
diff --git a/linux/drivers/media/dvb/siano/smscoreapi.h b/linux/drivers/media/dvb/siano/smscoreapi.h
index 83e0e55f7..875cbe6c7 100644
--- a/linux/drivers/media/dvb/siano/smscoreapi.h
+++ b/linux/drivers/media/dvb/siano/smscoreapi.h
@@ -658,6 +658,7 @@ int smscore_led_state(struct smscore_device_t *core, int led);
/* ------------------------------------------------------------------------ */
+extern int sms_debug;
#define DBG_INFO 1
#define DBG_ADV 2
@@ -666,7 +667,7 @@ int smscore_led_state(struct smscore_device_t *core, int led);
printk(kern "%s: " fmt "\n", __func__, ##arg)
#define dprintk(kern, lvl, fmt, arg...) do {\
- if (sms_dbg & lvl) \
+ if (sms_debug & lvl) \
sms_printk(kern, fmt, ##arg); } while (0)
#define sms_log(fmt, arg...) sms_printk(KERN_INFO, fmt, ##arg)
diff --git a/linux/drivers/media/dvb/siano/smsdvb.c b/linux/drivers/media/dvb/siano/smsdvb.c
index 035bd52c9..329cbce07 100644
--- a/linux/drivers/media/dvb/siano/smsdvb.c
+++ b/linux/drivers/media/dvb/siano/smsdvb.c
@@ -50,9 +50,6 @@ struct smsdvb_client_t {
static struct list_head g_smsdvb_clients;
static struct mutex g_smsdvb_clientslock;
-static int sms_dbg;
-module_param_named(debug, sms_dbg, int, 0644);
-MODULE_PARM_DESC(debug, "set debug level (info=1, adv=2 (or-able))");
static int smsdvb_onresponse(void *context, struct smscore_buffer_t *cb)
{