aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv6
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2012-05-15 10:11:54 -0400
committerDavid S. Miller <davem@davemloft.net>2012-05-16 01:01:03 -0400
commit91df42bedccb919902c7cf7eb876c982ae7f1b1d (patch)
treea941627c25c941b8f26d20d2c214ff2004eae356 /net/ipv6
parentf32138319ca6541e65f95f8e17c9cc88ac1baf94 (diff)
net: ipv4 and ipv6: Convert printk(KERN_DEBUG to pr_debug
Use the current debugging style and enable dynamic_debug. Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6')
-rw-r--r--net/ipv6/addrconf.c17
-rw-r--r--net/ipv6/esp6.c4
-rw-r--r--net/ipv6/ip6_fib.c5
-rw-r--r--net/ipv6/ip6_tunnel.c2
-rw-r--r--net/ipv6/ipcomp6.c4
5 files changed, 16 insertions, 16 deletions
diff --git a/net/ipv6/addrconf.c b/net/ipv6/addrconf.c
index 707989068555..8ec009c0b2bc 100644
--- a/net/ipv6/addrconf.c
+++ b/net/ipv6/addrconf.c
@@ -329,7 +329,7 @@ void in6_dev_finish_destroy(struct inet6_dev *idev)
329 WARN_ON(idev->mc_list != NULL); 329 WARN_ON(idev->mc_list != NULL);
330 330
331#ifdef NET_REFCNT_DEBUG 331#ifdef NET_REFCNT_DEBUG
332 printk(KERN_DEBUG "%s: %s\n", __func__, dev ? dev->name : "NIL"); 332 pr_debug("%s: %s\n", __func__, dev ? dev->name : "NIL");
333#endif 333#endif
334 dev_put(dev); 334 dev_put(dev);
335 if (!idev->dead) { 335 if (!idev->dead) {
@@ -542,7 +542,7 @@ void inet6_ifa_finish_destroy(struct inet6_ifaddr *ifp)
542 WARN_ON(!hlist_unhashed(&ifp->addr_lst)); 542 WARN_ON(!hlist_unhashed(&ifp->addr_lst));
543 543
544#ifdef NET_REFCNT_DEBUG 544#ifdef NET_REFCNT_DEBUG
545 printk(KERN_DEBUG "inet6_ifa_finish_destroy\n"); 545 pr_debug("%s\n", __func__);
546#endif 546#endif
547 547
548 in6_dev_put(ifp->idev); 548 in6_dev_put(ifp->idev);
@@ -2405,7 +2405,7 @@ static void init_loopback(struct net_device *dev)
2405 ASSERT_RTNL(); 2405 ASSERT_RTNL();
2406 2406
2407 if ((idev = ipv6_find_idev(dev)) == NULL) { 2407 if ((idev = ipv6_find_idev(dev)) == NULL) {
2408 printk(KERN_DEBUG "init loopback: add_dev failed\n"); 2408 pr_debug("%s: add_dev failed\n", __func__);
2409 return; 2409 return;
2410 } 2410 }
2411 2411
@@ -2474,7 +2474,7 @@ static void addrconf_sit_config(struct net_device *dev)
2474 */ 2474 */
2475 2475
2476 if ((idev = ipv6_find_idev(dev)) == NULL) { 2476 if ((idev = ipv6_find_idev(dev)) == NULL) {
2477 printk(KERN_DEBUG "init sit: add_dev failed\n"); 2477 pr_debug("%s: add_dev failed\n", __func__);
2478 return; 2478 return;
2479 } 2479 }
2480 2480
@@ -2509,7 +2509,7 @@ static void addrconf_gre_config(struct net_device *dev)
2509 ASSERT_RTNL(); 2509 ASSERT_RTNL();
2510 2510
2511 if ((idev = ipv6_find_idev(dev)) == NULL) { 2511 if ((idev = ipv6_find_idev(dev)) == NULL) {
2512 printk(KERN_DEBUG "init gre: add_dev failed\n"); 2512 pr_debug("%s: add_dev failed\n", __func__);
2513 return; 2513 return;
2514 } 2514 }
2515 2515
@@ -2549,7 +2549,7 @@ static void ip6_tnl_add_linklocal(struct inet6_dev *idev)
2549 if (!ipv6_inherit_linklocal(idev, link_dev)) 2549 if (!ipv6_inherit_linklocal(idev, link_dev))
2550 return; 2550 return;
2551 } 2551 }
2552 printk(KERN_DEBUG "init ip6-ip6: add_linklocal failed\n"); 2552 pr_debug("init ip6-ip6: add_linklocal failed\n");
2553} 2553}
2554 2554
2555/* 2555/*
@@ -2565,7 +2565,7 @@ static void addrconf_ip6_tnl_config(struct net_device *dev)
2565 2565
2566 idev = addrconf_add_dev(dev); 2566 idev = addrconf_add_dev(dev);
2567 if (IS_ERR(idev)) { 2567 if (IS_ERR(idev)) {
2568 printk(KERN_DEBUG "init ip6-ip6: add_dev failed\n"); 2568 pr_debug("init ip6-ip6: add_dev failed\n");
2569 return; 2569 return;
2570 } 2570 }
2571 ip6_tnl_add_linklocal(idev); 2571 ip6_tnl_add_linklocal(idev);
@@ -2893,8 +2893,7 @@ static void addrconf_rs_timer(unsigned long data)
2893 * Note: we do not support deprecated "all on-link" 2893 * Note: we do not support deprecated "all on-link"
2894 * assumption any longer. 2894 * assumption any longer.
2895 */ 2895 */
2896 printk(KERN_DEBUG "%s: no IPv6 routers present\n", 2896 pr_debug("%s: no IPv6 routers present\n", idev->dev->name);
2897 idev->dev->name);
2898 } 2897 }
2899 2898
2900out: 2899out:
diff --git a/net/ipv6/esp6.c b/net/ipv6/esp6.c
index 6697eb0fba55..1e62b7557b00 100644
--- a/net/ipv6/esp6.c
+++ b/net/ipv6/esp6.c
@@ -444,8 +444,8 @@ static void esp6_err(struct sk_buff *skb, struct inet6_skb_parm *opt,
444 esph->spi, IPPROTO_ESP, AF_INET6); 444 esph->spi, IPPROTO_ESP, AF_INET6);
445 if (!x) 445 if (!x)
446 return; 446 return;
447 printk(KERN_DEBUG "pmtu discovery on SA ESP/%08x/%pI6\n", 447 pr_debug("pmtu discovery on SA ESP/%08x/%pI6\n",
448 ntohl(esph->spi), &iph->daddr); 448 ntohl(esph->spi), &iph->daddr);
449 xfrm_state_put(x); 449 xfrm_state_put(x);
450} 450}
451 451
diff --git a/net/ipv6/ip6_fib.c b/net/ipv6/ip6_fib.c
index e9846da77424..0c220a416626 100644
--- a/net/ipv6/ip6_fib.c
+++ b/net/ipv6/ip6_fib.c
@@ -41,7 +41,7 @@
41#define RT6_DEBUG 2 41#define RT6_DEBUG 2
42 42
43#if RT6_DEBUG >= 3 43#if RT6_DEBUG >= 3
44#define RT6_TRACE(x...) printk(KERN_DEBUG x) 44#define RT6_TRACE(x...) pr_debug(x)
45#else 45#else
46#define RT6_TRACE(x...) do { ; } while (0) 46#define RT6_TRACE(x...) do { ; } while (0)
47#endif 47#endif
@@ -1420,7 +1420,8 @@ static int fib6_clean_node(struct fib6_walker_t *w)
1420 res = fib6_del(rt, &info); 1420 res = fib6_del(rt, &info);
1421 if (res) { 1421 if (res) {
1422#if RT6_DEBUG >= 2 1422#if RT6_DEBUG >= 2
1423 printk(KERN_DEBUG "fib6_clean_node: del failed: rt=%p@%p err=%d\n", rt, rt->rt6i_node, res); 1423 pr_debug("%s: del failed: rt=%p@%p err=%d\n",
1424 __func__, rt, rt->rt6i_node, res);
1424#endif 1425#endif
1425 continue; 1426 continue;
1426 } 1427 }
diff --git a/net/ipv6/ip6_tunnel.c b/net/ipv6/ip6_tunnel.c
index 7962b3d42673..e65c56009bb0 100644
--- a/net/ipv6/ip6_tunnel.c
+++ b/net/ipv6/ip6_tunnel.c
@@ -62,7 +62,7 @@ MODULE_LICENSE("GPL");
62MODULE_ALIAS_NETDEV("ip6tnl0"); 62MODULE_ALIAS_NETDEV("ip6tnl0");
63 63
64#ifdef IP6_TNL_DEBUG 64#ifdef IP6_TNL_DEBUG
65#define IP6_TNL_TRACE(x...) printk(KERN_DEBUG "%s:" x "\n", __func__) 65#define IP6_TNL_TRACE(x...) pr_debug("%s:" x "\n", __func__)
66#else 66#else
67#define IP6_TNL_TRACE(x...) do {;} while(0) 67#define IP6_TNL_TRACE(x...) do {;} while(0)
68#endif 68#endif
diff --git a/net/ipv6/ipcomp6.c b/net/ipv6/ipcomp6.c
index 1addba5b8b39..5cb75bfe45b1 100644
--- a/net/ipv6/ipcomp6.c
+++ b/net/ipv6/ipcomp6.c
@@ -72,8 +72,8 @@ static void ipcomp6_err(struct sk_buff *skb, struct inet6_skb_parm *opt,
72 if (!x) 72 if (!x)
73 return; 73 return;
74 74
75 printk(KERN_DEBUG "pmtu discovery on SA IPCOMP/%08x/%pI6\n", 75 pr_debug("pmtu discovery on SA IPCOMP/%08x/%pI6\n",
76 spi, &iph->daddr); 76 spi, &iph->daddr);
77 xfrm_state_put(x); 77 xfrm_state_put(x);
78} 78}
79 79