[dpdk-dev] [PATCH 2/5] crypto/virtio: use local log type
Stephen Hemminger
stephen at networkplumber.org
Tue Feb 26 22:34:21 CET 2019
The virtio crypto driver was using PMD log type and it should
be using the local log type.
Fixes: 25500d4b8076 ("crypto/virtio: support device init")
Signed-off-by: Stephen Hemminger <stephen at networkplumber.org>
---
drivers/crypto/virtio/virtio_logs.h | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/drivers/crypto/virtio/virtio_logs.h b/drivers/crypto/virtio/virtio_logs.h
index 26a286cf81ec..1ee3819309f7 100644
--- a/drivers/crypto/virtio/virtio_logs.h
+++ b/drivers/crypto/virtio/virtio_logs.h
@@ -7,8 +7,10 @@
#include <rte_log.h>
+extern int virtio_crypto_logtype_init;
+
#define PMD_INIT_LOG(level, fmt, args...) \
- rte_log(RTE_LOG_ ## level, RTE_LOGTYPE_PMD, \
+ rte_log(RTE_LOG_ ## level, virtio_crypto_logtype_init, \
"PMD: %s(): " fmt "\n", __func__, ##args)
#define PMD_INIT_FUNC_TRACE() PMD_INIT_LOG(DEBUG, " >>")
--
2.17.1
More information about the dev
mailing list