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: fiona.tr...@intel.com

Signed-off-by: Bruce Richardson <bruce.richard...@intel.com>
---
 lib/compressdev/rte_compressdev_internal.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/compressdev/rte_compressdev_internal.h 
b/lib/compressdev/rte_compressdev_internal.h
index 25d8afbfb9..b3b193e3ee 100644
--- a/lib/compressdev/rte_compressdev_internal.h
+++ b/lib/compressdev/rte_compressdev_internal.h
@@ -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)
 
 /**
-- 
2.34.1

Reply via email to