diff options
| author | Jiri Kosina <jkosina@suse.cz> | 2012-10-15 17:42:55 -0400 |
|---|---|---|
| committer | Theodore Ts'o <tytso@mit.edu> | 2012-10-15 23:24:39 -0400 |
| commit | be5b779ae9ce64ede0a8f4939360b0320bb257e2 (patch) | |
| tree | 06300e505d460f1c039c14535b6478abb31bdc0d | |
| parent | ddffeb8c4d0331609ef2581d84de4d763607bd37 (diff) | |
random: make it possible to enable debugging without rebuild
The module parameter that turns debugging mode (which basically means
printing a few extra lines during runtime) is in '#if 0' block. Forcing
everyone who would like to see how entropy is behaving on his system to
rebuild seems to be a little bit too harsh.
If we were concerned about speed, we could potentially turn 'debug' into a
static key, but I don't think it's necessary.
Drop the '#if 0' block to allow using the 'debug' parameter without rebuilding.
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
| -rw-r--r-- | drivers/char/random.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/char/random.c b/drivers/char/random.c index b86eae9b77df..9ac4443a1854 100644 --- a/drivers/char/random.c +++ b/drivers/char/random.c | |||
| @@ -399,7 +399,6 @@ static DECLARE_WAIT_QUEUE_HEAD(random_read_wait); | |||
| 399 | static DECLARE_WAIT_QUEUE_HEAD(random_write_wait); | 399 | static DECLARE_WAIT_QUEUE_HEAD(random_write_wait); |
| 400 | static struct fasync_struct *fasync; | 400 | static struct fasync_struct *fasync; |
| 401 | 401 | ||
| 402 | #if 0 | ||
| 403 | static bool debug; | 402 | static bool debug; |
| 404 | module_param(debug, bool, 0644); | 403 | module_param(debug, bool, 0644); |
| 405 | #define DEBUG_ENT(fmt, arg...) do { \ | 404 | #define DEBUG_ENT(fmt, arg...) do { \ |
| @@ -410,9 +409,6 @@ module_param(debug, bool, 0644); | |||
| 410 | blocking_pool.entropy_count,\ | 409 | blocking_pool.entropy_count,\ |
| 411 | nonblocking_pool.entropy_count,\ | 410 | nonblocking_pool.entropy_count,\ |
| 412 | ## arg); } while (0) | 411 | ## arg); } while (0) |
| 413 | #else | ||
| 414 | #define DEBUG_ENT(fmt, arg...) do {} while (0) | ||
| 415 | #endif | ||
| 416 | 412 | ||
| 417 | /********************************************************************** | 413 | /********************************************************************** |
| 418 | * | 414 | * |
