2021-03-04 10:06:10

by Martin Kepplinger

[permalink] [raw]
Subject: [PATCH] Documentation: dynamic-debug-howto: fix example

dynamic debug is "expecting pairs of match-spec <value>" so the example
for all files of which the paths include "usb" there is "file" missing.

Signed-off-by: Martin Kepplinger <[email protected]>
---
Documentation/admin-guide/dynamic-debug-howto.rst | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Documentation/admin-guide/dynamic-debug-howto.rst b/Documentation/admin-guide/dynamic-debug-howto.rst
index 6c04aea8f4cd..b119b8277b3e 100644
--- a/Documentation/admin-guide/dynamic-debug-howto.rst
+++ b/Documentation/admin-guide/dynamic-debug-howto.rst
@@ -347,7 +347,7 @@ Examples
<debugfs>/dynamic_debug/control

// enable messages in files of which the paths include string "usb"
- nullarbor:~ # echo -n '*usb* +p' > <debugfs>/dynamic_debug/control
+ nullarbor:~ # echo -n 'file *usb* +p' > <debugfs>/dynamic_debug/control

// enable all messages
nullarbor:~ # echo -n '+p' > <debugfs>/dynamic_debug/control
--
2.30.1


2021-03-09 00:11:44

by Jonathan Corbet

[permalink] [raw]
Subject: Re: [PATCH] Documentation: dynamic-debug-howto: fix example

Martin Kepplinger <[email protected]> writes:

> dynamic debug is "expecting pairs of match-spec <value>" so the example
> for all files of which the paths include "usb" there is "file" missing.
>
> Signed-off-by: Martin Kepplinger <[email protected]>
> ---
> Documentation/admin-guide/dynamic-debug-howto.rst | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/Documentation/admin-guide/dynamic-debug-howto.rst b/Documentation/admin-guide/dynamic-debug-howto.rst
> index 6c04aea8f4cd..b119b8277b3e 100644
> --- a/Documentation/admin-guide/dynamic-debug-howto.rst
> +++ b/Documentation/admin-guide/dynamic-debug-howto.rst
> @@ -347,7 +347,7 @@ Examples
> <debugfs>/dynamic_debug/control
>
> // enable messages in files of which the paths include string "usb"
> - nullarbor:~ # echo -n '*usb* +p' > <debugfs>/dynamic_debug/control
> + nullarbor:~ # echo -n 'file *usb* +p' > <debugfs>/dynamic_debug/control

Applied, thanks.

jon