From: Dmitry Zogin Date: Fri, 20 Aug 2010 14:50:07 +0000 (+0400) Subject: b=17682 Improve debug capability for production systems X-Git-Tag: 2.0.51.0~46 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=98ddf37c044e0db6a0009d1ed296dd42cae1661d b=17682 Improve debug capability for production systems Add a warning, when debug/subsystem_debug masks are set by numerical values, rather than by symbolic names. --- diff --git a/libcfs/libcfs/debug.c b/libcfs/libcfs/debug.c index f8da94a..be2db8e 100644 --- a/libcfs/libcfs/debug.c +++ b/libcfs/libcfs/debug.c @@ -316,6 +316,8 @@ libcfs_debug_str2mask(int *mask, const char *str, int is_subsys) 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"); *mask = m; return 0; }