summaryrefslogtreecommitdiffstats
path: root/src/vat2/vat2.h
diff options
context:
space:
mode:
authorOle Troan <ot@cisco.com>2022-12-06 14:41:41 +0100
committerAndrew Yourtchenko <ayourtch@gmail.com>2022-12-07 10:34:04 +0000
commitfe1fb3c31aa5f42c213eaa0c51f9d5a2cef07711 (patch)
tree1af8d6173214a7d4dff9a4e0210fc1108aaa71de /src/vat2/vat2.h
parentbcdde1a0a12b33b640be7e28cd93afc4125221ca (diff)
vat2: add plugin-path parameter
Add plugin-path parameter to aid external plugin development. Multiple directories are supported as a colon separated list. Type: improvement Signed-off-by: Ole Troan <ot@cisco.com> Change-Id: Ida35dedceccd0019ea68e56f7a3672c530258447
Diffstat (limited to 'src/vat2/vat2.h')
-rw-r--r--src/vat2/vat2.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/vat2/vat2.h b/src/vat2/vat2.h
index d477b7279b3..acdb85368cc 100644
--- a/src/vat2/vat2.h
+++ b/src/vat2/vat2.h
@@ -3,9 +3,15 @@
#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)