dynamic-debug-howto: Correct echo -c to -n
authorSteven Price <steven@ecrips.co.uk>
Tue, 17 Jan 2017 13:38:49 +0000 (13:38 +0000)
committerJonathan Corbet <corbet@lwn.net>
Thu, 26 Jan 2017 22:11:02 +0000 (15:11 -0700)
Two of the example command lines use an argument to echo of "-c" which
isn't valid in (most versions of) echo causing these examples to fail.
Correct the argument to "-n" which works correctly.

Signed-off-by: Steven Price <steven@ecrips.co.uk>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Documentation/admin-guide/dynamic-debug-howto.rst

index 88adcfdf5b2b034c9eb2b622c2a72505674faa87..12278a926370a136e978feb31c94fa8763e9cdea 100644 (file)
@@ -93,9 +93,9 @@ Command Language Reference
 At the lexical level, a command comprises a sequence of words separated
 by spaces or tabs.  So these are all equivalent::
 
-  nullarbor:~ # echo -c 'file svcsock.c line 1603 +p' >
+  nullarbor:~ # echo -n 'file svcsock.c line 1603 +p' >
                                <debugfs>/dynamic_debug/control
-  nullarbor:~ # echo -c '  file   svcsock.c     line  1603 +p  ' >
+  nullarbor:~ # echo -n '  file   svcsock.c     line  1603 +p  ' >
                                <debugfs>/dynamic_debug/control
   nullarbor:~ # echo -n 'file svcsock.c line 1603 +p' >
                                <debugfs>/dynamic_debug/control