| From | Jim Cromie <> | | Subject | [PATCH 01/11] dynamic_debug: allow changing of dynamic_debug verbosity any time | | Date | Tue, 28 Jun 2011 01:09:42 -0600 |
| |
allow changing dynamic_debug verbosity at boot-time, with: dynamic_debug.verbose=1 or at runtime with: root@voyage:~# echo 1 > /sys/module/dynamic_debug/parameters/verbose
Signed-off-by: Jim Cromie <jim.cromie@gmail.com> --- lib/dynamic_debug.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/lib/dynamic_debug.c b/lib/dynamic_debug.c index 75ca78f..a3b08d5 100644 --- a/lib/dynamic_debug.c +++ b/lib/dynamic_debug.c @@ -58,6 +58,7 @@ struct ddebug_iter { static DEFINE_MUTEX(ddebug_lock); static LIST_HEAD(ddebug_tables); static int verbose = 0; +module_param(verbose, int, 0744); /* Return the last part of a pathname */ static inline const char *basename(const char *path) -- 1.7.4.1
|