Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c5690e1
)
b=17682 Improve debug capability for production systems
author
Dmitry Zogin
<dmitry.zoguine@oracle.com>
Fri, 20 Aug 2010 14:50:07 +0000
(18:50 +0400)
committer
Mikhail Pershin
<tappro@sun.com>
Fri, 20 Aug 2010 19:49:02 +0000
(23:49 +0400)
Add a warning, when debug/subsystem_debug masks are set by
numerical values, rather than by symbolic names.
libcfs/libcfs/debug.c
patch
|
blob
|
history
diff --git
a/libcfs/libcfs/debug.c
b/libcfs/libcfs/debug.c
index
f8da94a
..
be2db8e
100644
(file)
--- 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;
}