Whamcloud - gitweb
LU-000 libcfs: allow debug to be set to numeric -1
[fs/lustre-release.git] / libcfs / libcfs / debug.c
index 00fbb56..fb93ac2 100644 (file)
@@ -319,8 +319,8 @@ libcfs_debug_str2mask(int *mask, const char *str, int is_subsys)
 
         if ((t = sscanf(str, "%i%n", &m, &matched)) >= 1 &&
             matched == n) {
-                /* don't print warning for lctl set_param debug=0 */
-                if (m != 0)
+                /* don't print warning for lctl set_param debug=0 or -1 */
+                if (m != 0 && m != -1)
                         CWARN("You are trying to use a numerical value for the "
                               "mask - this will be deprecated in a future "
                               "release.\n");