Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
vat2: add plugin-path parameter
[vpp.git]
/
src
/
vat2
/
vat2.h
diff --git
a/src/vat2/vat2.h
b/src/vat2/vat2.h
index
d477b72
..
acdb853
100644
(file)
--- a/
src/vat2/vat2.h
+++ b/
src/vat2/vat2.h
@@
-3,9
+3,15
@@
#include <stdbool.h>
#include <stdbool.h>
-extern bool debug;
+extern bool
vat2_
debug;
-#define DBG(fmt, args...) do {if (debug) fprintf(stderr, fmt, ## args); } while(0)
+#define DBG(fmt, args...) \
+ do \
+ { \
+ if (vat2_debug) \
+ fprintf (stderr, fmt, ##args); \
+ } \
+ while (0)
#define ERR(fmt, args...) fprintf(stderr, "VAT2: %s:%d:%s(): " fmt, \
__FILE__, __LINE__, __func__, ##args)
#define ERR(fmt, args...) fprintf(stderr, "VAT2: %s:%d:%s(): " fmt, \
__FILE__, __LINE__, __func__, ##args)