crypto/mrvl: fix driver name in debug log
Since CRYPTODEV_NAME_MRVL_CRYPTO_PMD is undefined RTE_STR() expands
it to "CRYPTODEV_NAME_MRVL_CRYPTO_PMD" instead of "crypto_mrvl".
This patch fixes that by using proper name definition in debug logs.
Fixes: 8a61c83af2
("crypto/mrvl: add mrvl crypto driver")
Signed-off-by: Tomasz Duszynski <tdu@semihalf.com>
This commit is contained in:
parent
3417350e7f
commit
238fba5b97
@ -40,18 +40,18 @@
|
||||
|
||||
#define MRVL_CRYPTO_LOG_ERR(fmt, args...) \
|
||||
RTE_LOG(ERR, CRYPTODEV, "[%s] %s() line %u: " fmt "\n", \
|
||||
RTE_STR(CRYPTODEV_NAME_MRVL_CRYPTO_PMD), \
|
||||
RTE_STR(CRYPTODEV_NAME_MRVL_PMD), \
|
||||
__func__, __LINE__, ## args)
|
||||
|
||||
#ifdef RTE_LIBRTE_MRVL_CRYPTO_DEBUG
|
||||
#define MRVL_CRYPTO_LOG_INFO(fmt, args...) \
|
||||
RTE_LOG(INFO, CRYPTODEV, "[%s] %s() line %u: " fmt "\n", \
|
||||
RTE_STR(CRYPTODEV_NAME_MRVL_CRYPTO_PMD), \
|
||||
RTE_STR(CRYPTODEV_NAME_MRVL_PMD), \
|
||||
__func__, __LINE__, ## args)
|
||||
|
||||
#define MRVL_CRYPTO_LOG_DBG(fmt, args...) \
|
||||
RTE_LOG(DEBUG, CRYPTODEV, "[%s] %s() line %u: " fmt "\n", \
|
||||
RTE_STR(CRYPTODEV_NAME_MRVL_CRYPTO_PMD), \
|
||||
RTE_STR(CRYPTODEV_NAME_MRVL_PMD), \
|
||||
__func__, __LINE__, ## args)
|
||||
|
||||
#else
|
||||
|
Loading…
Reference in New Issue
Block a user