X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=libcfs%2Flibcfs%2Fdebug.c;h=de6e0da57b6e56ac387da570115fc854c39fd73e;hb=40ca6010734f52bd01fae48035040b1bce76519e;hp=f8da94a1e7c91c33c5d0b3e2415d4b91c3fe88ca;hpb=57aa3ce7de2be045d3bca9dc85459b0a3e99ccc4;p=fs%2Flustre-release.git diff --git a/libcfs/libcfs/debug.c b/libcfs/libcfs/debug.c index f8da94a..de6e0da 100644 --- a/libcfs/libcfs/debug.c +++ b/libcfs/libcfs/debug.c @@ -316,12 +316,14 @@ 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; } - return libcfs_str2mask(str, fn, mask, is_subsys ? 0 : D_CANTMASK, - 0xffffffff); + return cfs_str2mask(str, fn, mask, is_subsys ? 0 : D_CANTMASK, + 0xffffffff); } /**