1#ifndef _DEBUG_H 2#define _DEBUG_H 3 4#include <libnetfilter_conntrack/libnetfilter_conntrack.h> 5 6#undef DEBUG_CT 7 8#ifdef DEBUG_CT 9#define debug_ct(ct, msg) \ 10({ \ 11 char buf[1024]; \ 12 nfct_snprintf(buf, 1024, ct, NFCT_T_ALL, 0, 0); \ 13 printf("[%s]: %s\n", msg, buf); \ 14}) 15#define debug printf 16#else 17#define debug_ct(ct, msg) do {} while (0) 18#define debug(...) do {} while (0) 19#endif 20 21#endif 22