Use RTE_LOG_LINE_PREFIX instead of RTE_LOG_LINE in macro expansions
which allow a prefix and arguments to be inserted into the log line
without the need to use the ## args variadic argument pack extension.
Signed-off-by: Tyler Retzlaff <roretzla@linux.microsoft.com>
---
lib/compressdev/rte_compressdev_internal.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
@@ -23,8 +23,8 @@
extern int compressdev_logtype;
#define RTE_LOGTYPE_COMPRESSDEV compressdev_logtype
-#define COMPRESSDEV_LOG(level, fmt, args...) \
- RTE_LOG_LINE(level, COMPRESSDEV, "%s(): " fmt, __func__, ## args)
+#define COMPRESSDEV_LOG(level, ...) \
+ RTE_LOG_LINE_PREFIX(level, COMPRESSDEV, "%s(): ", __func__, __VA_ARGS__)
/**
* Dequeue processed packets from queue pair of a device.