Skip to content

Commit 31fc93d

Browse files
ecripsJonathan Corbet
authored andcommitted
dynamic-debug-howto: Correct echo -c to -n
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>
1 parent c80c450 commit 31fc93d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Documentation/admin-guide/dynamic-debug-howto.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,9 @@ Command Language Reference
9393
At the lexical level, a command comprises a sequence of words separated
9494
by spaces or tabs. So these are all equivalent::
9595

96-
nullarbor:~ # echo -c 'file svcsock.c line 1603 +p' >
96+
nullarbor:~ # echo -n 'file svcsock.c line 1603 +p' >
9797
<debugfs>/dynamic_debug/control
98-
nullarbor:~ # echo -c ' file svcsock.c line 1603 +p ' >
98+
nullarbor:~ # echo -n ' file svcsock.c line 1603 +p ' >
9999
<debugfs>/dynamic_debug/control
100100
nullarbor:~ # echo -n 'file svcsock.c line 1603 +p' >
101101
<debugfs>/dynamic_debug/control

0 commit comments

Comments
 (0)