crypto/virtio: use local log type

The virtio crypto driver was using PMD log type and it should
be using the local log type.

Fixes: 25500d4b80 ("crypto/virtio: support device init")
Cc: stable@dpdk.org

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
This commit is contained in:
Stephen Hemminger 2019-02-26 13:34:21 -08:00 committed by Ferruh Yigit
parent e37aad5ed3
commit 85016c7735

View File

@ -7,8 +7,10 @@
#include <rte_log.h> #include <rte_log.h>
extern int virtio_crypto_logtype_init;
#define PMD_INIT_LOG(level, fmt, args...) \ #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) "PMD: %s(): " fmt "\n", __func__, ##args)
#define PMD_INIT_FUNC_TRACE() PMD_INIT_LOG(DEBUG, " >>") #define PMD_INIT_FUNC_TRACE() PMD_INIT_LOG(DEBUG, " >>")