--- ip_conntrack_sip.c.orig 2007-10-17 12:31:14.000000000 -0700 +++ ip_conntrack_sip.c 2008-02-11 10:14:33.000000000 -0800 @@ -20,16 +20,16 @@ #include #include -#if 0 -#define DEBUGP printk -#else -#define DEBUGP(format, args...) -#endif - MODULE_LICENSE("GPL"); MODULE_AUTHOR("Christian Hentschel "); MODULE_DESCRIPTION("SIP connection tracking helper"); +static unsigned int debug = 0; +module_param(debug, uint, 0); +MODULE_PARM_DESC(debug, "debug=1 is turn on debug messages"); + +#define DEBUGP(format, args...) if (debug) printk(KERN_DEBUG format, ##args) + #define MAX_PORTS 8 static unsigned short ports[MAX_PORTS]; static int ports_c; --- ip_nat_sip.c.orig 2007-10-17 12:31:14.000000000 -0700 +++ ip_nat_sip.c 2008-02-11 10:15:30.000000000 -0800 @@ -23,11 +23,11 @@ MODULE_AUTHOR("Christian Hentschel "); MODULE_DESCRIPTION("SIP NAT helper"); -#if 0 -#define DEBUGP printk -#else -#define DEBUGP(format, args...) -#endif +static unsigned int debug = 0; +module_param(debug, uint, 0); +MODULE_PARM_DESC(debug, "debug=1 is turn on debug messages"); + +#define DEBUGP(format, args...) if (debug) printk(KERN_DEBUG format, ##args...) struct addr_map { struct { --- nf_nat_sip.c.orig 2007-10-17 12:31:14.000000000 -0700 +++ nf_nat_sip.c 2008-02-11 10:16:06.000000000 -0800 @@ -25,11 +25,11 @@ MODULE_DESCRIPTION("SIP NAT helper"); MODULE_ALIAS("ip_nat_sip"); -#if 0 -#define DEBUGP printk -#else -#define DEBUGP(format, args...) -#endif +static unsigned int debug = 0; +module_param(debug, uint, 0); +MODULE_PARM_DESC(debug, "debug=1 is turn on debug messages"); + +#define DEBUGP(format, args...) if (debug) printk(KERN_DEBUG format, ##args...) struct addr_map { struct {