diff options
Diffstat (limited to 'lib/debugobjects.c')
-rw-r--r-- | lib/debugobjects.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/debugobjects.c b/lib/debugobjects.c index 5d99be1fd988..90e46fa12721 100644 --- a/lib/debugobjects.c +++ b/lib/debugobjects.c | |||
@@ -55,7 +55,15 @@ static int __init enable_object_debug(char *str) | |||
55 | debug_objects_enabled = 1; | 55 | debug_objects_enabled = 1; |
56 | return 0; | 56 | return 0; |
57 | } | 57 | } |
58 | |||
59 | static int __init disable_object_debug(char *str) | ||
60 | { | ||
61 | debug_objects_enabled = 0; | ||
62 | return 0; | ||
63 | } | ||
64 | |||
58 | early_param("debug_objects", enable_object_debug); | 65 | early_param("debug_objects", enable_object_debug); |
66 | early_param("no_debug_objects", disable_object_debug); | ||
59 | 67 | ||
60 | static const char *obj_states[ODEBUG_STATE_MAX] = { | 68 | static const char *obj_states[ODEBUG_STATE_MAX] = { |
61 | [ODEBUG_STATE_NONE] = "none", | 69 | [ODEBUG_STATE_NONE] = "none", |