Skip to contentSkip to conversation

doc: fix incorrect example for specifying log level

PATCH Superseded Xiaolong Ye 3 participants 5 messages Mar 17, 2020 – Apr 26, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 doc: fix incorrect example for specifying log level

Now we need to add prefix like lib. to enable the log.

Fixes ffb9fd1b0808 ("log: update legacy modules dynamic logs regex")
---
 doc/guides/linux_gsg/eal_args.include.rst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
doc/guides/linux_gsg/eal_args.include.rst +1 -1
index ed8b0e35b..b48b23927 100644
@@ -132,7 +132,7 @@ Debugging options
 
     Specify log level for a specific component. For example::
 
-        --log-level eal:8
+        --log-level lib.eal:8
 
     Can be specified multiple times.
 
Signature · 1 line
2.17.1
#1 lore raw
Quoted 16 lines · On Tue, 17 Mar 2020 16:31:06 +0800 Xiaolong Ye <[email protected]> wrote:

Now we need to add prefix like lib. to enable the log.

Fixes ffb9fd1b0808 ("log: update legacy modules dynamic logs regex")
---
 doc/guides/linux_gsg/eal_args.include.rst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
doc/guides/linux_gsg/eal_args.include.rst +0 -0
index ed8b0e35b..b48b23927 100644

doc/guides/linux_gsg/eal_args.include.rst Debugging options · line 138

Quoted 8 lines
doc/guides/linux_gsg/eal_args.include.rst +1 -1
@@ -132,7 +132,7 @@ Debugging options
 
     Specify log level for a specific component. For example::
 
-        --log-level eal:8
+        --log-level lib.eal:8
 
     Can be specified multiple times.
 

Please change numeric value to name as well. Recent versions of DPDK allow "debug" instead of 8

#2 lore raw
Quoted 22 lines · Stephen Hemminger
Quoted 19 lines · On Tue, 17 Mar 2020 16:31:06 +0800 Xiaolong Ye <[email protected]> wrote:

Now we need to add prefix like lib. to enable the log.

Fixes ffb9fd1b0808 ("log: update legacy modules dynamic logs regex")
---
 doc/guides/linux_gsg/eal_args.include.rst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
doc/guides/linux_gsg/eal_args.include.rst +0 -0
index ed8b0e35b..b48b23927 100644
@@ -132,7 +132,7 @@ Debugging options
 
     Specify log level for a specific component. For example::
 
Quoted 8 lines

doc/guides/linux_gsg/eal_args.include.rst Debugging options · line 138

Quoted 5 lines
doc/guides/linux_gsg/eal_args.include.rst +1 -1
-        --log-level eal:8
+        --log-level lib.eal:8
 
     Can be specified multiple times.
 

Please change numeric value to name as well. Recent versions of DPDK allow "debug" instead of 8

Make sense, will update it.

Thanks,
Xiaolong

#3 lore raw

PATCH v2 1/1 doc: fix incorrect example for specifying log level

In reply to Xiaolong Ye

Now we need to add prefix like lib. to enable the log, also changing val 8 to "debug"" which would be more descriptive.

Fixes ffb9fd1b0808 ("log: update legacy modules dynamic logs regex")
---
 doc/guides/linux_gsg/eal_args.include.rst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
doc/guides/linux_gsg/eal_args.include.rst +1 -1
index ed8b0e35b..7b2f6b1d4 100644
@@ -132,7 +132,7 @@ Debugging options
 
     Specify log level for a specific component. For example::
 
-        --log-level eal:8
+        --log-level lib.eal:debug
 
     Can be specified multiple times.
 
Signature · 1 line
2.17.1