]> git.droids-corp.org - dpdk.git/blobdiff - drivers/crypto/null/null_crypto_pmd_private.h
net/mlx4: separate debugging macros
[dpdk.git] / drivers / crypto / null / null_crypto_pmd_private.h
index 2a4c739c5f8053398dfc07ff7dbfb19cad3f516f..4d1c3c9e475e4392b8bc6b9567af3be8d8314c19 100644 (file)
 
 #include "rte_config.h"
 
+#define CRYPTODEV_NAME_NULL_PMD                crypto_null
+/**< Null crypto PMD device name */
+
 #define NULL_CRYPTO_LOG_ERR(fmt, args...) \
        RTE_LOG(ERR, CRYPTODEV, "[%s] %s() line %u: " fmt "\n",  \
-                       CRYPTODEV_NAME_NULL_PMD, \
+                       RTE_STR(CRYPTODEV_NAME_NULL_PMD), \
                        __func__, __LINE__, ## args)
 
 #ifdef RTE_LIBRTE_NULL_CRYPTO_DEBUG
 #define NULL_CRYPTO_LOG_INFO(fmt, args...) \
        RTE_LOG(INFO, CRYPTODEV, "[%s] %s() line %u: " fmt "\n", \
-                       CRYPTODEV_NAME_NULL_PMD, \
+                       RTE_STR(CRYPTODEV_NAME_NULL_PMD), \
                        __func__, __LINE__, ## args)
 
 #define NULL_CRYPTO_LOG_DBG(fmt, args...) \
        RTE_LOG(DEBUG, CRYPTODEV, "[%s] %s() line %u: " fmt "\n", \
-                       CRYPTODEV_NAME_NULL_PMD, \
+                       RTE_STR(CRYPTODEV_NAME_NULL_PMD), \
                        __func__, __LINE__, ## args)
 #else
 #define NULL_CRYPTO_LOG_INFO(fmt, args...)