Code written as follows,
#define print_err(fmt, ...) \
do { if (DEBUG_ERR) fprintf(stderr, "%s:%d:%s(): " fmt, __FILE__, \
__LINE__, __func__, ##__VA_ARGS__); } while (0)
I am getting error, if not define the DEBUG_ERR macro. Compilation was done using gcc 5.4.0. There is no problem if the macro DEBUG_ERR is defined.
include/tmp.h:54:18: error: ‘DEBUG_ERR’ undeclared (first use in this function)
do { if (DEBUG_ERR) fprintf(stderr, "%s:%d:%s(): " fmt, __FILE__, \*