Don't warn if debug is set to "-1", which should always mean
"enable all debugging".
Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Change-Id: I1503d2f5776043e9a4ec3bc4af710ae35ca97960
Reviewed-on: http://review.whamcloud.com/1577
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Johann Lombardi <johann@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
if ((t = sscanf(str, "%i%n", &m, &matched)) >= 1 &&
matched == n) {
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");
CWARN("You are trying to use a numerical value for the "
"mask - this will be deprecated in a future "
"release.\n");