]> git.droids-corp.org - dpdk.git/commitdiff
compressdev: fix missing space in log macro
authorBruce Richardson <bruce.richardson@intel.com>
Fri, 11 Mar 2022 20:05:21 +0000 (20:05 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 15 Mar 2022 01:13:57 +0000 (02:13 +0100)
Building with clang on FreeBSD with chkincs enabled, we get the
following error about a missing space:

lib/compressdev/rte_compressdev_internal.h:25:58: error:
invalid suffix on literal;
C++11 requires a space between literal and identifier [-Wreserved-user-defined-literal]
        rte_log(RTE_LOG_ ## level, compressdev_logtype, "%s(): "fmt "\n", \

Adding in a space between the '"' and 'fmt' removes the error.

Fixes: ed7dd94f7f66 ("compressdev: add basic device management")
Cc: stable@dpdk.org
Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
lib/compressdev/rte_compressdev_internal.h

index 25d8afbfb9cc2bb342c487c31fc5e2498ba96fe1..b3b193e3eef90535c8d8f320d8206c4bc0ba6f56 100644 (file)
@@ -22,7 +22,7 @@ extern "C" {
 /* Logging Macros */
 extern int compressdev_logtype;
 #define COMPRESSDEV_LOG(level, fmt, args...) \
-       rte_log(RTE_LOG_ ## level, compressdev_logtype, "%s(): "fmt "\n", \
+       rte_log(RTE_LOG_ ## level, compressdev_logtype, "%s(): " fmt "\n", \
                        __func__, ##args)
 
 /**