Signed-off-by: Alexey Perevalov <a.perevalov@xxxxxxxxxxx> --- include/trace.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 include/trace.h diff --git a/include/trace.h b/include/trace.h new file mode 100644 index 0000000..4711171 --- /dev/null +++ b/include/trace.h @@ -0,0 +1,14 @@ +#ifndef _IPTABLES_TRACE_H +#define _IPTABLES_TRACE_H + +#ifdef DEBUG +#include <fcntl.h> +#define DEBUGP(x, args...) fprintf(stderr, "%s: " x, __FUNCTION__, ## args) +#define DEBUGP_C(x, args...) fprintf(stderr, x, ## args) +#else +#define DEBUGP(x, args...) +#define DEBUGP_C(x, args...) +#endif + +#endif /* _IPTABLES_TRACE_H */ + -- 1.7.9.5 -- To unsubscribe from this list: send the line "unsubscribe netfilter" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html