Change-Id: Ib54bc2fd42603065aa200475ff30e69bafa91e9d
Signed-off-by: Johann Lombardi <johann@whamcloud.com>
Reviewed-on: http://review.whamcloud.com/544
Tested-by: Hudson
Reviewed-by: Niu Yawei <niu@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
if ((t = sscanf(str, "%i%n", &m, &matched)) >= 1 &&
matched == n) {
- CWARN("You are trying to use a numerical value for the mask -"
- " this will be deprecated in a future release.\n");
+ /* don't print warning for lctl set_param debug=0 */
+ if (m != 0)
+ CWARN("You are trying to use a numerical value for the "
+ "mask - this will be deprecated in a future "
+ "release.\n");
*mask = m;
return 0;
}