git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
lib: fix non-C99 macros definitions in exported headers
[dpdk.git]
/
lib
/
librte_eal
/
common
/
include
/
rte_debug.h
diff --git
a/lib/librte_eal/common/include/rte_debug.h
b/lib/librte_eal/common/include/rte_debug.h
index
9045a70
..
e997514
100644
(file)
--- a/
lib/librte_eal/common/include/rte_debug.h
+++ b/
lib/librte_eal/common/include/rte_debug.h
@@
-76,7
+76,8
@@
void rte_dump_registers(void);
* @param args
* The variable list of arguments.
*/
* @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.
/*
* Provide notification of a critical non-recoverable error and stop.