From: Tomasz Duszynski Date: Tue, 17 Oct 2017 07:17:46 +0000 (+0200) Subject: crypto/mrvl: fix driver name in debug log X-Git-Tag: spdx-start~1207 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=238fba5b977f5a120ceb6958e2f80a21f91d0e2f;p=dpdk.git 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 --- 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