Skip to contentSkip to conversation

net/vmxnet3: fix init logs

PATCH Applied David Marchand 2 participants 2 messages Jun 25, 2024 – Jul 6, 2024

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net/vmxnet3: fix init logs

All logs for this driver are emitted under pmd.net.vmxnet3.driver while two logtypes exist.
This issue comes from the conversion to dynamic logtypes change. Redirect PMD_INIT_LOG to pmd.net.vmxnet3.init.

Fixes 79daffdcb6ac ("net/vmxnet3: implement dynamic logging")
---
 drivers/net/vmxnet3/vmxnet3_logs.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/vmxnet3/vmxnet3_logs.h +1 -1
index e2127988f6..5962325d62 100644
@@ -7,7 +7,7 @@
 
 extern int vmxnet3_logtype_init;
 #define PMD_INIT_LOG(level, fmt, args...) \
-	rte_log(RTE_LOG_ ## level, vmxnet3_logtype_driver, \
+	rte_log(RTE_LOG_ ## level, vmxnet3_logtype_init, \
 		"%s(): " fmt "\n", __func__, ## args)
 #define PMD_INIT_FUNC_TRACE() PMD_INIT_LOG(DEBUG, " >>")
 
Signature · 1 line
2.45.2
Reviewed-by on v1 1/1 Applied
#1 lore raw
Quoted 10 lines · David Marchand

All logs for this driver are emitted under pmd.net.vmxnet3.driver while two logtypes exist.
This issue comes from the conversion to dynamic logtypes change. Redirect PMD_INIT_LOG to pmd.net.vmxnet3.init.

Fixes 79daffdcb6ac ("net/vmxnet3: implement dynamic logging")

Applied to dpdk-next-net/main, thanks.