From 238fba5b977f5a120ceb6958e2f80a21f91d0e2f Mon Sep 17 00:00:00 2001 From: Tomasz Duszynski Date: Tue, 17 Oct 2017 09:17:46 +0200 Subject: [PATCH] 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: 8a61c83af2fa ("crypto/mrvl: add mrvl crypto driver") Signed-off-by: Tomasz Duszynski --- drivers/crypto/mrvl/rte_mrvl_pmd_private.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/crypto/mrvl/rte_mrvl_pmd_private.h b/drivers/crypto/mrvl/rte_mrvl_pmd_private.h index 2da14b879c..7daef68cb4 100644 --- a/drivers/crypto/mrvl/rte_mrvl_pmd_private.h +++ b/drivers/crypto/mrvl/rte_mrvl_pmd_private.h @@ -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 -- 2.20.1