]> git.droids-corp.org - dpdk.git/blobdiff - lib/librte_eal/common/include/rte_debug.h
lib: fix non-C99 macros definitions in exported headers
[dpdk.git] / lib / librte_eal / common / include / rte_debug.h
index 9045a70cc98f0af651b132c5d974420f62a4eb87..e997514ae037fed11953995be1234576be2a00b1 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.