diff options
author | Michael Krufky <mkrufky@linuxtv.org> | 2008-06-19 16:59:08 -0400 |
---|---|---|
committer | Michael Krufky <mkrufky@linuxtv.org> | 2008-06-19 16:59:08 -0400 |
commit | 1e6dea12fc00f3da24a0ff566c0a7cfbe62998e4 (patch) | |
tree | 11b3bfa1f4bcc62ceaeaf539a4a41599533432d2 /linux/drivers/media/dvb/siano/smscoreapi.c | |
parent | bcf9ebb39574d120560c3d9149a618e0e5b282d9 (diff) | |
download | mediapointer-dvb-s2-1e6dea12fc00f3da24a0ff566c0a7cfbe62998e4.tar.gz mediapointer-dvb-s2-1e6dea12fc00f3da24a0ff566c0a7cfbe62998e4.tar.bz2 |
sms1xxx: add debug module option, to enable debug messages
From: Michael Krufky <mkrufky@linuxtv.org>
All dmesg spam turned off by default, for now. Values for debug:
(info=1, adv=2 (or-able)
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Diffstat (limited to 'linux/drivers/media/dvb/siano/smscoreapi.c')
-rw-r--r-- | linux/drivers/media/dvb/siano/smscoreapi.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/linux/drivers/media/dvb/siano/smscoreapi.c b/linux/drivers/media/dvb/siano/smscoreapi.c index 12a058af5..2e0c98a38 100644 --- a/linux/drivers/media/dvb/siano/smscoreapi.c +++ b/linux/drivers/media/dvb/siano/smscoreapi.c @@ -33,6 +33,10 @@ #include "smscoreapi.h" +int sms_debug; +module_param_named(debug, sms_debug, int, 0644); +MODULE_PARM_DESC(debug, "set debug level (info=1, adv=2 (or-able))"); + #define PERROR(fmt, args...)\ sms_err("smscore error: line %d- %s(): " fmt, \ __LINE__, __func__, ## args) |