crypto/mrvl: fix driver name in debug log
authorTomasz Duszynski <tdu@semihalf.com>
Tue, 17 Oct 2017 07:17:46 +0000 (09:17 +0200)
committerPablo de Lara <pablo.de.lara.guarch@intel.com>
Wed, 25 Oct 2017 16:10:40 +0000 (18:10 +0200)
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 <tdu@semihalf.com>
drivers/crypto/mrvl/rte_mrvl_pmd_private.h

index 2da14b8..7daef68 100644 (file)
 
 #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