|
@@ -10,6 +10,8 @@
|
|
|
* 2 of the License, or (at your option) any later version.
|
|
|
*/
|
|
|
|
|
|
+#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
|
|
|
+
|
|
|
#include <linux/module.h>
|
|
|
#include <linux/moduleparam.h>
|
|
|
#include <linux/tcp.h>
|
|
@@ -79,7 +81,7 @@ static unsigned int help(struct sk_buff *skb,
|
|
|
*/
|
|
|
/* AAA = "us", ie. where server normally talks to. */
|
|
|
snprintf(buffer, sizeof(buffer), "%u %u", ntohl(newaddr.ip), port);
|
|
|
- pr_debug("nf_nat_irc: inserting '%s' == %pI4, port %u\n",
|
|
|
+ pr_debug("inserting '%s' == %pI4, port %u\n",
|
|
|
buffer, &newaddr.ip, port);
|
|
|
|
|
|
if (!nf_nat_mangle_tcp_packet(skb, ct, ctinfo, protoff, matchoff,
|
|
@@ -108,8 +110,7 @@ static int __init nf_nat_irc_init(void)
|
|
|
/* Prior to 2.6.11, we had a ports param. No longer, but don't break users. */
|
|
|
static int warn_set(const char *val, const struct kernel_param *kp)
|
|
|
{
|
|
|
- printk(KERN_INFO KBUILD_MODNAME
|
|
|
- ": kernel >= 2.6.10 only uses 'ports' for conntrack modules\n");
|
|
|
+ pr_info("kernel >= 2.6.10 only uses 'ports' for conntrack modules\n");
|
|
|
return 0;
|
|
|
}
|
|
|
module_param_call(ports, warn_set, NULL, NULL, 0);
|