[02/15] bpf: use GCC and MSVC common VA ARGS extension
Checks
Commit Message
Use ... and forward with __VA_ARGS__ instead of args... and args.
Neither mechanism is conformant with the standard but the former works
with both GCC and MSVC.
Signed-off-by: Tyler Retzlaff <roretzla@linux.microsoft.com>
---
lib/bpf/bpf_impl.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
@@ -29,8 +29,8 @@ struct rte_bpf {
extern int rte_bpf_logtype;
#define RTE_LOGTYPE_BPF rte_bpf_logtype
-#define RTE_BPF_LOG_LINE(lvl, fmt, args...) \
- RTE_LOG_LINE(lvl, BPF, fmt, ##args)
+#define RTE_BPF_LOG_LINE(lvl, fmt, ...) \
+ RTE_LOG_LINE(lvl, BPF, fmt, ## __VA_ARGS__)
static inline size_t
bpf_size(uint32_t bpf_op_sz)