diff options
author | Mike Isely <devnull@localhost> | 2006-01-14 22:09:52 +0000 |
---|---|---|
committer | Mike Isely <devnull@localhost> | 2006-01-14 22:09:52 +0000 |
commit | 53e2a0e11ea790e0466ae6358e2f293584155611 (patch) | |
tree | 12b2535d1e23088e324f98e9bf7f59f8b380caf1 /v4l_experimental/pvrusb2/pvrusb2-main.c | |
parent | 1fe396338f08245ff63b2435a4e70cf176f14347 (diff) | |
download | mediapointer-dvb-s2-53e2a0e11ea790e0466ae6358e2f293584155611.tar.gz mediapointer-dvb-s2-53e2a0e11ea790e0466ae6358e2f293584155611.tar.bz2 |
Change global "debug" to "pvrusb2_debug"
Note - I think this is the only actual global variable in the entire
driver right now. (Other stuff is either static or held through a
context pointer).
From: Mike Isely <isely@pobox.com>
Signed-off-by: Mike Isely <isely@pobox.com>
Diffstat (limited to 'v4l_experimental/pvrusb2/pvrusb2-main.c')
-rw-r--r-- | v4l_experimental/pvrusb2/pvrusb2-main.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/v4l_experimental/pvrusb2/pvrusb2-main.c b/v4l_experimental/pvrusb2/pvrusb2-main.c index 0c856207b..6e026a1c6 100644 --- a/v4l_experimental/pvrusb2/pvrusb2-main.c +++ b/v4l_experimental/pvrusb2/pvrusb2-main.c @@ -1,6 +1,6 @@ /* * - * $Id: pvrusb2-main.c,v 1.5 2006/01/14 19:09:50 mcisely Exp $ + * $Id: pvrusb2-main.c,v 1.6 2006/01/14 22:09:52 mcisely Exp $ * * Copyright (C) 2005 Mike Isely <isely@pobox.com> * Copyright (C) 2004 Aurelien Alleaume <slts@free.fr> @@ -55,9 +55,9 @@ PVR2_TRACE_DEBUGIFC | \ 0) -int debug = DEFAULT_DEBUG_MASK; +int pvrusb2_debug = DEFAULT_DEBUG_MASK; -module_param(debug,int,S_IRUGO|S_IWUSR); +module_param_named(debug,pvrusb2_debug,int,S_IRUGO|S_IWUSR); MODULE_PARM_DESC(debug, "Debug trace mask"); static struct pvr2_sysfs_class *class_ptr = 0; @@ -145,7 +145,8 @@ static int __init pvr_init(void) if (ret == 0) info(DRIVER_DESC " : " DRIVER_VERSION); - if (debug) info("Debug mask is %d (0x%x)",debug,debug); + if (pvrusb2_debug) info("Debug mask is %d (0x%x)", + pvrusb2_debug,pvrusb2_debug); return ret; } |