77 * it under the terms of the GNU General Public License version 2 as
88 * published by the Free Software Foundation.
99 */
10-
10+ #define pr_fmt ( fmt ) KBUILD_MODNAME ": " fmt
1111#include <linux/module.h>
1212#include <linux/skbuff.h>
1313#include <linux/ip.h>
@@ -67,14 +67,14 @@ tcpmss_mangle_packet(struct sk_buff *skb,
6767 if (info -> mss == XT_TCPMSS_CLAMP_PMTU ) {
6868 if (dst_mtu (skb_dst (skb )) <= minlen ) {
6969 if (net_ratelimit ())
70- printk ( KERN_ERR "xt_TCPMSS: "
70+ pr_err ( "xt_TCPMSS: "
7171 "unknown or invalid path-MTU (%u)\n" ,
7272 dst_mtu (skb_dst (skb )));
7373 return -1 ;
7474 }
7575 if (in_mtu <= minlen ) {
7676 if (net_ratelimit ())
77- printk ( KERN_ERR "xt_TCPMSS: unknown or "
77+ pr_err ( "xt_TCPMSS: unknown or "
7878 "invalid path-MTU (%u)\n" , in_mtu );
7979 return -1 ;
8080 }
@@ -245,14 +245,14 @@ static bool tcpmss_tg4_check(const struct xt_tgchk_param *par)
245245 (par -> hook_mask & ~((1 << NF_INET_FORWARD ) |
246246 (1 << NF_INET_LOCAL_OUT ) |
247247 (1 << NF_INET_POST_ROUTING ))) != 0 ) {
248- printk ( "xt_TCPMSS: path-MTU clamping only supported in "
249- "FORWARD, OUTPUT and POSTROUTING hooks\n" );
248+ pr_info ( " path-MTU clamping only supported in "
249+ "FORWARD, OUTPUT and POSTROUTING hooks\n" );
250250 return false;
251251 }
252252 xt_ematch_foreach (ematch , e )
253253 if (find_syn_match (ematch ))
254254 return true;
255- printk ( "xt_TCPMSS: Only works on TCP SYN packets\n" );
255+ pr_info ( " Only works on TCP SYN packets\n" );
256256 return false;
257257}
258258
@@ -267,14 +267,14 @@ static bool tcpmss_tg6_check(const struct xt_tgchk_param *par)
267267 (par -> hook_mask & ~((1 << NF_INET_FORWARD ) |
268268 (1 << NF_INET_LOCAL_OUT ) |
269269 (1 << NF_INET_POST_ROUTING ))) != 0 ) {
270- printk ( "xt_TCPMSS: path-MTU clamping only supported in "
271- "FORWARD, OUTPUT and POSTROUTING hooks\n" );
270+ pr_info ( " path-MTU clamping only supported in "
271+ "FORWARD, OUTPUT and POSTROUTING hooks\n" );
272272 return false;
273273 }
274274 xt_ematch_foreach (ematch , e )
275275 if (find_syn_match (ematch ))
276276 return true;
277- printk ( "xt_TCPMSS: Only works on TCP SYN packets\n" );
277+ pr_info ( " Only works on TCP SYN packets\n" );
278278 return false;
279279}
280280#endif
0 commit comments