lib: fix non-C99 macros definitions in exported headers
[dpdk.git] / lib / librte_eal / common / include / rte_debug.h
index 9045a70..e997514 100644 (file)
@@ -76,7 +76,8 @@ void rte_dump_registers(void);
  * @param args
  *   The variable list of arguments.
  */
-#define rte_panic(format, args...) __rte_panic(__func__, format, ## args)
+#define rte_panic_(func, format, ...) __rte_panic(func, format "%.0s", __VA_ARGS__)
+#define rte_panic(...) rte_panic_(__func__, __VA_ARGS__, "dummy")
 
 /*
  * Provide notification of a critical non-recoverable error and stop.