aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Ragwitz <rafl@debian.org>2010-05-24 17:33:21 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2010-05-25 11:07:05 -0400
commit2b2f68b5383ea107295d7f1483256866e2daa1e3 (patch)
treeab643941ab96fce48117479d321adfa3d9510d23
parentea46c8f774f295c45fac48101d54be347d3d453b (diff)
DYNAMIC_DEBUG: fix documentation errors
[akpm@linux-foundation.org: coding-style fixes] Signed-off-by: Florian Ragwitz <rafl@debian.org> Cc: Jason Baron <jbaron@redhat.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r--include/linux/dynamic_debug.h2
-rw-r--r--lib/Kconfig.debug16
2 files changed, 9 insertions, 9 deletions
diff --git a/include/linux/dynamic_debug.h b/include/linux/dynamic_debug.h
index f8c2e1767500..b3cd4de9432b 100644
--- a/include/linux/dynamic_debug.h
+++ b/include/linux/dynamic_debug.h
@@ -28,7 +28,7 @@ struct _ddebug {
28 /* 28 /*
29 * The flags field controls the behaviour at the callsite. 29 * The flags field controls the behaviour at the callsite.
30 * The bits here are changed dynamically when the user 30 * The bits here are changed dynamically when the user
31 * writes commands to <debugfs>/dynamic_debug/ddebug 31 * writes commands to <debugfs>/dynamic_debug/control
32 */ 32 */
33#define _DPRINTK_FLAGS_PRINT (1<<0) /* printk() a message using the format */ 33#define _DPRINTK_FLAGS_PRINT (1<<0) /* printk() a message using the format */
34#define _DPRINTK_FLAGS_DEFAULT 0 34#define _DPRINTK_FLAGS_DEFAULT 0
diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug
index d85be90d5888..231208948363 100644
--- a/lib/Kconfig.debug
+++ b/lib/Kconfig.debug
@@ -1039,10 +1039,10 @@ config DYNAMIC_DEBUG
1039 1039
1040 Usage: 1040 Usage:
1041 1041
1042 Dynamic debugging is controlled via the 'dynamic_debug/ddebug' file, 1042 Dynamic debugging is controlled via the 'dynamic_debug/control' file,
1043 which is contained in the 'debugfs' filesystem. Thus, the debugfs 1043 which is contained in the 'debugfs' filesystem. Thus, the debugfs
1044 filesystem must first be mounted before making use of this feature. 1044 filesystem must first be mounted before making use of this feature.
1045 We refer the control file as: <debugfs>/dynamic_debug/ddebug. This 1045 We refer the control file as: <debugfs>/dynamic_debug/control. This
1046 file contains a list of the debug statements that can be enabled. The 1046 file contains a list of the debug statements that can be enabled. The
1047 format for each line of the file is: 1047 format for each line of the file is:
1048 1048
@@ -1057,7 +1057,7 @@ config DYNAMIC_DEBUG
1057 1057
1058 From a live system: 1058 From a live system:
1059 1059
1060 nullarbor:~ # cat <debugfs>/dynamic_debug/ddebug 1060 nullarbor:~ # cat <debugfs>/dynamic_debug/control
1061 # filename:lineno [module]function flags format 1061 # filename:lineno [module]function flags format
1062 fs/aio.c:222 [aio]__put_ioctx - "__put_ioctx:\040freeing\040%p\012" 1062 fs/aio.c:222 [aio]__put_ioctx - "__put_ioctx:\040freeing\040%p\012"
1063 fs/aio.c:248 [aio]ioctx_alloc - "ENOMEM:\040nr_events\040too\040high\012" 1063 fs/aio.c:248 [aio]ioctx_alloc - "ENOMEM:\040nr_events\040too\040high\012"
@@ -1067,23 +1067,23 @@ config DYNAMIC_DEBUG
1067 1067
1068 // enable the message at line 1603 of file svcsock.c 1068 // enable the message at line 1603 of file svcsock.c
1069 nullarbor:~ # echo -n 'file svcsock.c line 1603 +p' > 1069 nullarbor:~ # echo -n 'file svcsock.c line 1603 +p' >
1070 <debugfs>/dynamic_debug/ddebug 1070 <debugfs>/dynamic_debug/control
1071 1071
1072 // enable all the messages in file svcsock.c 1072 // enable all the messages in file svcsock.c
1073 nullarbor:~ # echo -n 'file svcsock.c +p' > 1073 nullarbor:~ # echo -n 'file svcsock.c +p' >
1074 <debugfs>/dynamic_debug/ddebug 1074 <debugfs>/dynamic_debug/control
1075 1075
1076 // enable all the messages in the NFS server module 1076 // enable all the messages in the NFS server module
1077 nullarbor:~ # echo -n 'module nfsd +p' > 1077 nullarbor:~ # echo -n 'module nfsd +p' >
1078 <debugfs>/dynamic_debug/ddebug 1078 <debugfs>/dynamic_debug/control
1079 1079
1080 // enable all 12 messages in the function svc_process() 1080 // enable all 12 messages in the function svc_process()
1081 nullarbor:~ # echo -n 'func svc_process +p' > 1081 nullarbor:~ # echo -n 'func svc_process +p' >
1082 <debugfs>/dynamic_debug/ddebug 1082 <debugfs>/dynamic_debug/control
1083 1083
1084 // disable all 12 messages in the function svc_process() 1084 // disable all 12 messages in the function svc_process()
1085 nullarbor:~ # echo -n 'func svc_process -p' > 1085 nullarbor:~ # echo -n 'func svc_process -p' >
1086 <debugfs>/dynamic_debug/ddebug 1086 <debugfs>/dynamic_debug/control
1087 1087
1088 See Documentation/dynamic-debug-howto.txt for additional information. 1088 See Documentation/dynamic-debug-howto.txt for additional information.
1089 1089