X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fvat2%2Fvat2.h;h=acdb85368cc68259d639ed45487590740fdaaefe;hb=fe1fb3c31aa5f42c213eaa0c51f9d5a2cef07711;hp=d477b7279b3a3084b69e5b8dcce0cf66f3146b4e;hpb=bcdde1a0a12b33b640be7e28cd93afc4125221ca;p=vpp.git 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 -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)