aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/bonding/bond_main.c
diff options
context:
space:
mode:
authorHolger Eitzenberger <holger@eitzenberger.org>2008-12-10 02:09:22 -0500
committerDavid S. Miller <davem@davemloft.net>2008-12-10 02:09:22 -0500
commit5a03cdb7f2d7ff88e50153d8c3b90a1d52dca435 (patch)
tree2cdaf63b0308afcf259625ea20439840c81d62e5 /drivers/net/bonding/bond_main.c
parentef65583d01f4060c758dba72f08edc09d8faa719 (diff)
bonding: use pr_debug instead of own macros
Use pr_debug() instead of own macros. Signed-off-by: Holger Eitzenberger <holger@eitzenberger.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/bonding/bond_main.c')
-rw-r--r--drivers/net/bonding/bond_main.c92
1 files changed, 45 insertions, 47 deletions
diff --git a/drivers/net/bonding/bond_main.c b/drivers/net/bonding/bond_main.c
index 7f2ac499aac2..19cd5c1e1bd3 100644
--- a/drivers/net/bonding/bond_main.c
+++ b/drivers/net/bonding/bond_main.c
@@ -31,8 +31,6 @@
31 * 31 *
32 */ 32 */
33 33
34//#define BONDING_DEBUG 1
35
36#include <linux/kernel.h> 34#include <linux/kernel.h>
37#include <linux/module.h> 35#include <linux/module.h>
38#include <linux/types.h> 36#include <linux/types.h>
@@ -248,7 +246,7 @@ static int bond_add_vlan(struct bonding *bond, unsigned short vlan_id)
248{ 246{
249 struct vlan_entry *vlan; 247 struct vlan_entry *vlan;
250 248
251 dprintk("bond: %s, vlan id %d\n", 249 pr_debug("bond: %s, vlan id %d\n",
252 (bond ? bond->dev->name: "None"), vlan_id); 250 (bond ? bond->dev->name: "None"), vlan_id);
253 251
254 vlan = kzalloc(sizeof(struct vlan_entry), GFP_KERNEL); 252 vlan = kzalloc(sizeof(struct vlan_entry), GFP_KERNEL);
@@ -265,7 +263,7 @@ static int bond_add_vlan(struct bonding *bond, unsigned short vlan_id)
265 263
266 write_unlock_bh(&bond->lock); 264 write_unlock_bh(&bond->lock);
267 265
268 dprintk("added VLAN ID %d on bond %s\n", vlan_id, bond->dev->name); 266 pr_debug("added VLAN ID %d on bond %s\n", vlan_id, bond->dev->name);
269 267
270 return 0; 268 return 0;
271} 269}
@@ -282,7 +280,7 @@ static int bond_del_vlan(struct bonding *bond, unsigned short vlan_id)
282 struct vlan_entry *vlan; 280 struct vlan_entry *vlan;
283 int res = -ENODEV; 281 int res = -ENODEV;
284 282
285 dprintk("bond: %s, vlan id %d\n", bond->dev->name, vlan_id); 283 pr_debug("bond: %s, vlan id %d\n", bond->dev->name, vlan_id);
286 284
287 write_lock_bh(&bond->lock); 285 write_lock_bh(&bond->lock);
288 286
@@ -293,7 +291,7 @@ static int bond_del_vlan(struct bonding *bond, unsigned short vlan_id)
293 if (bond_is_lb(bond)) 291 if (bond_is_lb(bond))
294 bond_alb_clear_vlan(bond, vlan_id); 292 bond_alb_clear_vlan(bond, vlan_id);
295 293
296 dprintk("removed VLAN ID %d from bond %s\n", vlan_id, 294 pr_debug("removed VLAN ID %d from bond %s\n", vlan_id,
297 bond->dev->name); 295 bond->dev->name);
298 296
299 kfree(vlan); 297 kfree(vlan);
@@ -313,7 +311,7 @@ static int bond_del_vlan(struct bonding *bond, unsigned short vlan_id)
313 } 311 }
314 } 312 }
315 313
316 dprintk("couldn't find VLAN ID %d in bond %s\n", vlan_id, 314 pr_debug("couldn't find VLAN ID %d in bond %s\n", vlan_id,
317 bond->dev->name); 315 bond->dev->name);
318 316
319out: 317out:
@@ -337,13 +335,13 @@ static int bond_has_challenged_slaves(struct bonding *bond)
337 335
338 bond_for_each_slave(bond, slave, i) { 336 bond_for_each_slave(bond, slave, i) {
339 if (slave->dev->features & NETIF_F_VLAN_CHALLENGED) { 337 if (slave->dev->features & NETIF_F_VLAN_CHALLENGED) {
340 dprintk("found VLAN challenged slave - %s\n", 338 pr_debug("found VLAN challenged slave - %s\n",
341 slave->dev->name); 339 slave->dev->name);
342 return 1; 340 return 1;
343 } 341 }
344 } 342 }
345 343
346 dprintk("no VLAN challenged slaves found\n"); 344 pr_debug("no VLAN challenged slaves found\n");
347 return 0; 345 return 0;
348} 346}
349 347
@@ -1319,9 +1317,9 @@ static void bond_detach_slave(struct bonding *bond, struct slave *slave)
1319static int bond_sethwaddr(struct net_device *bond_dev, 1317static int bond_sethwaddr(struct net_device *bond_dev,
1320 struct net_device *slave_dev) 1318 struct net_device *slave_dev)
1321{ 1319{
1322 dprintk("bond_dev=%p\n", bond_dev); 1320 pr_debug("bond_dev=%p\n", bond_dev);
1323 dprintk("slave_dev=%p\n", slave_dev); 1321 pr_debug("slave_dev=%p\n", slave_dev);
1324 dprintk("slave_dev->addr_len=%d\n", slave_dev->addr_len); 1322 pr_debug("slave_dev->addr_len=%d\n", slave_dev->addr_len);
1325 memcpy(bond_dev->dev_addr, slave_dev->dev_addr, slave_dev->addr_len); 1323 memcpy(bond_dev->dev_addr, slave_dev->dev_addr, slave_dev->addr_len);
1326 return 0; 1324 return 0;
1327} 1325}
@@ -1412,14 +1410,14 @@ int bond_enslave(struct net_device *bond_dev, struct net_device *slave_dev)
1412 1410
1413 /* already enslaved */ 1411 /* already enslaved */
1414 if (slave_dev->flags & IFF_SLAVE) { 1412 if (slave_dev->flags & IFF_SLAVE) {
1415 dprintk("Error, Device was already enslaved\n"); 1413 pr_debug("Error, Device was already enslaved\n");
1416 return -EBUSY; 1414 return -EBUSY;
1417 } 1415 }
1418 1416
1419 /* vlan challenged mutual exclusion */ 1417 /* vlan challenged mutual exclusion */
1420 /* no need to lock since we're protected by rtnl_lock */ 1418 /* no need to lock since we're protected by rtnl_lock */
1421 if (slave_dev->features & NETIF_F_VLAN_CHALLENGED) { 1419 if (slave_dev->features & NETIF_F_VLAN_CHALLENGED) {
1422 dprintk("%s: NETIF_F_VLAN_CHALLENGED\n", slave_dev->name); 1420 pr_debug("%s: NETIF_F_VLAN_CHALLENGED\n", slave_dev->name);
1423 if (!list_empty(&bond->vlan_list)) { 1421 if (!list_empty(&bond->vlan_list)) {
1424 printk(KERN_ERR DRV_NAME 1422 printk(KERN_ERR DRV_NAME
1425 ": %s: Error: cannot enslave VLAN " 1423 ": %s: Error: cannot enslave VLAN "
@@ -1437,7 +1435,7 @@ int bond_enslave(struct net_device *bond_dev, struct net_device *slave_dev)
1437 bond_dev->features |= NETIF_F_VLAN_CHALLENGED; 1435 bond_dev->features |= NETIF_F_VLAN_CHALLENGED;
1438 } 1436 }
1439 } else { 1437 } else {
1440 dprintk("%s: ! NETIF_F_VLAN_CHALLENGED\n", slave_dev->name); 1438 pr_debug("%s: ! NETIF_F_VLAN_CHALLENGED\n", slave_dev->name);
1441 if (bond->slave_cnt == 0) { 1439 if (bond->slave_cnt == 0) {
1442 /* First slave, and it is not VLAN challenged, 1440 /* First slave, and it is not VLAN challenged,
1443 * so remove the block of adding VLANs over the bond. 1441 * so remove the block of adding VLANs over the bond.
@@ -1525,20 +1523,20 @@ int bond_enslave(struct net_device *bond_dev, struct net_device *slave_dev)
1525 addr.sa_family = slave_dev->type; 1523 addr.sa_family = slave_dev->type;
1526 res = dev_set_mac_address(slave_dev, &addr); 1524 res = dev_set_mac_address(slave_dev, &addr);
1527 if (res) { 1525 if (res) {
1528 dprintk("Error %d calling set_mac_address\n", res); 1526 pr_debug("Error %d calling set_mac_address\n", res);
1529 goto err_free; 1527 goto err_free;
1530 } 1528 }
1531 } 1529 }
1532 1530
1533 res = netdev_set_master(slave_dev, bond_dev); 1531 res = netdev_set_master(slave_dev, bond_dev);
1534 if (res) { 1532 if (res) {
1535 dprintk("Error %d calling netdev_set_master\n", res); 1533 pr_debug("Error %d calling netdev_set_master\n", res);
1536 goto err_restore_mac; 1534 goto err_restore_mac;
1537 } 1535 }
1538 /* open the slave since the application closed it */ 1536 /* open the slave since the application closed it */
1539 res = dev_open(slave_dev); 1537 res = dev_open(slave_dev);
1540 if (res) { 1538 if (res) {
1541 dprintk("Openning slave %s failed\n", slave_dev->name); 1539 pr_debug("Openning slave %s failed\n", slave_dev->name);
1542 goto err_unset_master; 1540 goto err_unset_master;
1543 } 1541 }
1544 1542
@@ -1643,18 +1641,18 @@ int bond_enslave(struct net_device *bond_dev, struct net_device *slave_dev)
1643 if (!bond->params.miimon || 1641 if (!bond->params.miimon ||
1644 (bond_check_dev_link(bond, slave_dev, 0) == BMSR_LSTATUS)) { 1642 (bond_check_dev_link(bond, slave_dev, 0) == BMSR_LSTATUS)) {
1645 if (bond->params.updelay) { 1643 if (bond->params.updelay) {
1646 dprintk("Initial state of slave_dev is " 1644 pr_debug("Initial state of slave_dev is "
1647 "BOND_LINK_BACK\n"); 1645 "BOND_LINK_BACK\n");
1648 new_slave->link = BOND_LINK_BACK; 1646 new_slave->link = BOND_LINK_BACK;
1649 new_slave->delay = bond->params.updelay; 1647 new_slave->delay = bond->params.updelay;
1650 } else { 1648 } else {
1651 dprintk("Initial state of slave_dev is " 1649 pr_debug("Initial state of slave_dev is "
1652 "BOND_LINK_UP\n"); 1650 "BOND_LINK_UP\n");
1653 new_slave->link = BOND_LINK_UP; 1651 new_slave->link = BOND_LINK_UP;
1654 } 1652 }
1655 new_slave->jiffies = jiffies; 1653 new_slave->jiffies = jiffies;
1656 } else { 1654 } else {
1657 dprintk("Initial state of slave_dev is " 1655 pr_debug("Initial state of slave_dev is "
1658 "BOND_LINK_DOWN\n"); 1656 "BOND_LINK_DOWN\n");
1659 new_slave->link = BOND_LINK_DOWN; 1657 new_slave->link = BOND_LINK_DOWN;
1660 } 1658 }
@@ -1715,7 +1713,7 @@ int bond_enslave(struct net_device *bond_dev, struct net_device *slave_dev)
1715 bond_set_slave_inactive_flags(new_slave); 1713 bond_set_slave_inactive_flags(new_slave);
1716 break; 1714 break;
1717 default: 1715 default:
1718 dprintk("This slave is always active in trunk mode\n"); 1716 pr_debug("This slave is always active in trunk mode\n");
1719 1717
1720 /* always active in trunk mode */ 1718 /* always active in trunk mode */
1721 new_slave->state = BOND_STATE_ACTIVE; 1719 new_slave->state = BOND_STATE_ACTIVE;
@@ -2536,7 +2534,7 @@ static void bond_arp_send(struct net_device *slave_dev, int arp_op, __be32 dest_
2536{ 2534{
2537 struct sk_buff *skb; 2535 struct sk_buff *skb;
2538 2536
2539 dprintk("arp %d on slave %s: dst %x src %x vid %d\n", arp_op, 2537 pr_debug("arp %d on slave %s: dst %x src %x vid %d\n", arp_op,
2540 slave_dev->name, dest_ip, src_ip, vlan_id); 2538 slave_dev->name, dest_ip, src_ip, vlan_id);
2541 2539
2542 skb = arp_create(arp_op, ETH_P_ARP, dest_ip, slave_dev, src_ip, 2540 skb = arp_create(arp_op, ETH_P_ARP, dest_ip, slave_dev, src_ip,
@@ -2569,9 +2567,9 @@ static void bond_arp_send_all(struct bonding *bond, struct slave *slave)
2569 for (i = 0; (i < BOND_MAX_ARP_TARGETS); i++) { 2567 for (i = 0; (i < BOND_MAX_ARP_TARGETS); i++) {
2570 if (!targets[i]) 2568 if (!targets[i])
2571 continue; 2569 continue;
2572 dprintk("basa: target %x\n", targets[i]); 2570 pr_debug("basa: target %x\n", targets[i]);
2573 if (list_empty(&bond->vlan_list)) { 2571 if (list_empty(&bond->vlan_list)) {
2574 dprintk("basa: empty vlan: arp_send\n"); 2572 pr_debug("basa: empty vlan: arp_send\n");
2575 bond_arp_send(slave->dev, ARPOP_REQUEST, targets[i], 2573 bond_arp_send(slave->dev, ARPOP_REQUEST, targets[i],
2576 bond->master_ip, 0); 2574 bond->master_ip, 0);
2577 continue; 2575 continue;
@@ -2601,7 +2599,7 @@ static void bond_arp_send_all(struct bonding *bond, struct slave *slave)
2601 */ 2599 */
2602 if (rt->u.dst.dev == bond->dev) { 2600 if (rt->u.dst.dev == bond->dev) {
2603 ip_rt_put(rt); 2601 ip_rt_put(rt);
2604 dprintk("basa: rtdev == bond->dev: arp_send\n"); 2602 pr_debug("basa: rtdev == bond->dev: arp_send\n");
2605 bond_arp_send(slave->dev, ARPOP_REQUEST, targets[i], 2603 bond_arp_send(slave->dev, ARPOP_REQUEST, targets[i],
2606 bond->master_ip, 0); 2604 bond->master_ip, 0);
2607 continue; 2605 continue;
@@ -2612,7 +2610,7 @@ static void bond_arp_send_all(struct bonding *bond, struct slave *slave)
2612 vlan_dev = vlan_group_get_device(bond->vlgrp, vlan->vlan_id); 2610 vlan_dev = vlan_group_get_device(bond->vlgrp, vlan->vlan_id);
2613 if (vlan_dev == rt->u.dst.dev) { 2611 if (vlan_dev == rt->u.dst.dev) {
2614 vlan_id = vlan->vlan_id; 2612 vlan_id = vlan->vlan_id;
2615 dprintk("basa: vlan match on %s %d\n", 2613 pr_debug("basa: vlan match on %s %d\n",
2616 vlan_dev->name, vlan_id); 2614 vlan_dev->name, vlan_id);
2617 break; 2615 break;
2618 } 2616 }
@@ -2647,7 +2645,7 @@ static void bond_send_gratuitous_arp(struct bonding *bond)
2647 struct vlan_entry *vlan; 2645 struct vlan_entry *vlan;
2648 struct net_device *vlan_dev; 2646 struct net_device *vlan_dev;
2649 2647
2650 dprintk("bond_send_grat_arp: bond %s slave %s\n", bond->dev->name, 2648 pr_debug("bond_send_grat_arp: bond %s slave %s\n", bond->dev->name,
2651 slave ? slave->dev->name : "NULL"); 2649 slave ? slave->dev->name : "NULL");
2652 2650
2653 if (!slave || !bond->send_grat_arp || 2651 if (!slave || !bond->send_grat_arp ||
@@ -2677,7 +2675,7 @@ static void bond_validate_arp(struct bonding *bond, struct slave *slave, __be32
2677 2675
2678 targets = bond->params.arp_targets; 2676 targets = bond->params.arp_targets;
2679 for (i = 0; (i < BOND_MAX_ARP_TARGETS) && targets[i]; i++) { 2677 for (i = 0; (i < BOND_MAX_ARP_TARGETS) && targets[i]; i++) {
2680 dprintk("bva: sip %pI4 tip %pI4 t[%d] %pI4 bhti(tip) %d\n", 2678 pr_debug("bva: sip %pI4 tip %pI4 t[%d] %pI4 bhti(tip) %d\n",
2681 &sip, &tip, i, &targets[i], bond_has_this_ip(bond, tip)); 2679 &sip, &tip, i, &targets[i], bond_has_this_ip(bond, tip));
2682 if (sip == targets[i]) { 2680 if (sip == targets[i]) {
2683 if (bond_has_this_ip(bond, tip)) 2681 if (bond_has_this_ip(bond, tip))
@@ -2704,7 +2702,7 @@ static int bond_arp_rcv(struct sk_buff *skb, struct net_device *dev, struct pack
2704 bond = netdev_priv(dev); 2702 bond = netdev_priv(dev);
2705 read_lock(&bond->lock); 2703 read_lock(&bond->lock);
2706 2704
2707 dprintk("bond_arp_rcv: bond %s skb->dev %s orig_dev %s\n", 2705 pr_debug("bond_arp_rcv: bond %s skb->dev %s orig_dev %s\n",
2708 bond->dev->name, skb->dev ? skb->dev->name : "NULL", 2706 bond->dev->name, skb->dev ? skb->dev->name : "NULL",
2709 orig_dev ? orig_dev->name : "NULL"); 2707 orig_dev ? orig_dev->name : "NULL");
2710 2708
@@ -2730,7 +2728,7 @@ static int bond_arp_rcv(struct sk_buff *skb, struct net_device *dev, struct pack
2730 arp_ptr += 4 + dev->addr_len; 2728 arp_ptr += 4 + dev->addr_len;
2731 memcpy(&tip, arp_ptr, 4); 2729 memcpy(&tip, arp_ptr, 4);
2732 2730
2733 dprintk("bond_arp_rcv: %s %s/%d av %d sv %d sip %pI4 tip %pI4\n", 2731 pr_debug("bond_arp_rcv: %s %s/%d av %d sv %d sip %pI4 tip %pI4\n",
2734 bond->dev->name, slave->dev->name, slave->state, 2732 bond->dev->name, slave->dev->name, slave->state,
2735 bond->params.arp_validate, slave_do_arp_validate(bond, slave), 2733 bond->params.arp_validate, slave_do_arp_validate(bond, slave),
2736 &sip, &tip); 2734 &sip, &tip);
@@ -3595,7 +3593,7 @@ static int bond_netdev_event(struct notifier_block *this, unsigned long event, v
3595 if (dev_net(event_dev) != &init_net) 3593 if (dev_net(event_dev) != &init_net)
3596 return NOTIFY_DONE; 3594 return NOTIFY_DONE;
3597 3595
3598 dprintk("event_dev: %s, event: %lx\n", 3596 pr_debug("event_dev: %s, event: %lx\n",
3599 (event_dev ? event_dev->name : "None"), 3597 (event_dev ? event_dev->name : "None"),
3600 event); 3598 event);
3601 3599
@@ -3603,12 +3601,12 @@ static int bond_netdev_event(struct notifier_block *this, unsigned long event, v
3603 return NOTIFY_DONE; 3601 return NOTIFY_DONE;
3604 3602
3605 if (event_dev->flags & IFF_MASTER) { 3603 if (event_dev->flags & IFF_MASTER) {
3606 dprintk("IFF_MASTER\n"); 3604 pr_debug("IFF_MASTER\n");
3607 return bond_master_netdev_event(event, event_dev); 3605 return bond_master_netdev_event(event, event_dev);
3608 } 3606 }
3609 3607
3610 if (event_dev->flags & IFF_SLAVE) { 3608 if (event_dev->flags & IFF_SLAVE) {
3611 dprintk("IFF_SLAVE\n"); 3609 pr_debug("IFF_SLAVE\n");
3612 return bond_slave_netdev_event(event, event_dev); 3610 return bond_slave_netdev_event(event, event_dev);
3613 } 3611 }
3614 3612
@@ -3937,7 +3935,7 @@ static int bond_do_ioctl(struct net_device *bond_dev, struct ifreq *ifr, int cmd
3937 struct mii_ioctl_data *mii = NULL; 3935 struct mii_ioctl_data *mii = NULL;
3938 int res = 0; 3936 int res = 0;
3939 3937
3940 dprintk("bond_ioctl: master=%s, cmd=%d\n", 3938 pr_debug("bond_ioctl: master=%s, cmd=%d\n",
3941 bond_dev->name, cmd); 3939 bond_dev->name, cmd);
3942 3940
3943 switch (cmd) { 3941 switch (cmd) {
@@ -4015,12 +4013,12 @@ static int bond_do_ioctl(struct net_device *bond_dev, struct ifreq *ifr, int cmd
4015 down_write(&(bonding_rwsem)); 4013 down_write(&(bonding_rwsem));
4016 slave_dev = dev_get_by_name(&init_net, ifr->ifr_slave); 4014 slave_dev = dev_get_by_name(&init_net, ifr->ifr_slave);
4017 4015
4018 dprintk("slave_dev=%p: \n", slave_dev); 4016 pr_debug("slave_dev=%p: \n", slave_dev);
4019 4017
4020 if (!slave_dev) { 4018 if (!slave_dev) {
4021 res = -ENODEV; 4019 res = -ENODEV;
4022 } else { 4020 } else {
4023 dprintk("slave_dev->name=%s: \n", slave_dev->name); 4021 pr_debug("slave_dev->name=%s: \n", slave_dev->name);
4024 switch (cmd) { 4022 switch (cmd) {
4025 case BOND_ENSLAVE_OLD: 4023 case BOND_ENSLAVE_OLD:
4026 case SIOCBONDENSLAVE: 4024 case SIOCBONDENSLAVE:
@@ -4131,7 +4129,7 @@ static int bond_change_mtu(struct net_device *bond_dev, int new_mtu)
4131 int res = 0; 4129 int res = 0;
4132 int i; 4130 int i;
4133 4131
4134 dprintk("bond=%p, name=%s, new_mtu=%d\n", bond, 4132 pr_debug("bond=%p, name=%s, new_mtu=%d\n", bond,
4135 (bond_dev ? bond_dev->name : "None"), new_mtu); 4133 (bond_dev ? bond_dev->name : "None"), new_mtu);
4136 4134
4137 /* Can't hold bond->lock with bh disabled here since 4135 /* Can't hold bond->lock with bh disabled here since
@@ -4150,7 +4148,7 @@ static int bond_change_mtu(struct net_device *bond_dev, int new_mtu)
4150 */ 4148 */
4151 4149
4152 bond_for_each_slave(bond, slave, i) { 4150 bond_for_each_slave(bond, slave, i) {
4153 dprintk("s %p s->p %p c_m %p\n", slave, 4151 pr_debug("s %p s->p %p c_m %p\n", slave,
4154 slave->prev, slave->dev->change_mtu); 4152 slave->prev, slave->dev->change_mtu);
4155 4153
4156 res = dev_set_mtu(slave->dev, new_mtu); 4154 res = dev_set_mtu(slave->dev, new_mtu);
@@ -4164,7 +4162,7 @@ static int bond_change_mtu(struct net_device *bond_dev, int new_mtu)
4164 * means changing their mtu from timer context, which 4162 * means changing their mtu from timer context, which
4165 * is probably not a good idea. 4163 * is probably not a good idea.
4166 */ 4164 */
4167 dprintk("err %d %s\n", res, slave->dev->name); 4165 pr_debug("err %d %s\n", res, slave->dev->name);
4168 goto unwind; 4166 goto unwind;
4169 } 4167 }
4170 } 4168 }
@@ -4181,7 +4179,7 @@ unwind:
4181 4179
4182 tmp_res = dev_set_mtu(slave->dev, bond_dev->mtu); 4180 tmp_res = dev_set_mtu(slave->dev, bond_dev->mtu);
4183 if (tmp_res) { 4181 if (tmp_res) {
4184 dprintk("unwind err %d dev %s\n", tmp_res, 4182 pr_debug("unwind err %d dev %s\n", tmp_res,
4185 slave->dev->name); 4183 slave->dev->name);
4186 } 4184 }
4187 } 4185 }
@@ -4208,7 +4206,7 @@ static int bond_set_mac_address(struct net_device *bond_dev, void *addr)
4208 return bond_alb_set_mac_address(bond_dev, addr); 4206 return bond_alb_set_mac_address(bond_dev, addr);
4209 4207
4210 4208
4211 dprintk("bond=%p, name=%s\n", bond, (bond_dev ? bond_dev->name : "None")); 4209 pr_debug("bond=%p, name=%s\n", bond, (bond_dev ? bond_dev->name : "None"));
4212 4210
4213 /* 4211 /*
4214 * If fail_over_mac is set to active, do nothing and return 4212 * If fail_over_mac is set to active, do nothing and return
@@ -4238,11 +4236,11 @@ static int bond_set_mac_address(struct net_device *bond_dev, void *addr)
4238 4236
4239 bond_for_each_slave(bond, slave, i) { 4237 bond_for_each_slave(bond, slave, i) {
4240 const struct net_device_ops *slave_ops = slave->dev->netdev_ops; 4238 const struct net_device_ops *slave_ops = slave->dev->netdev_ops;
4241 dprintk("slave %p %s\n", slave, slave->dev->name); 4239 pr_debug("slave %p %s\n", slave, slave->dev->name);
4242 4240
4243 if (slave_ops->ndo_set_mac_address == NULL) { 4241 if (slave_ops->ndo_set_mac_address == NULL) {
4244 res = -EOPNOTSUPP; 4242 res = -EOPNOTSUPP;
4245 dprintk("EOPNOTSUPP %s\n", slave->dev->name); 4243 pr_debug("EOPNOTSUPP %s\n", slave->dev->name);
4246 goto unwind; 4244 goto unwind;
4247 } 4245 }
4248 4246
@@ -4254,7 +4252,7 @@ static int bond_set_mac_address(struct net_device *bond_dev, void *addr)
4254 * breakage anyway until ARP finish 4252 * breakage anyway until ARP finish
4255 * updating, so... 4253 * updating, so...
4256 */ 4254 */
4257 dprintk("err %d %s\n", res, slave->dev->name); 4255 pr_debug("err %d %s\n", res, slave->dev->name);
4258 goto unwind; 4256 goto unwind;
4259 } 4257 }
4260 } 4258 }
@@ -4274,7 +4272,7 @@ unwind:
4274 4272
4275 tmp_res = dev_set_mac_address(slave->dev, &tmp_sa); 4273 tmp_res = dev_set_mac_address(slave->dev, &tmp_sa);
4276 if (tmp_res) { 4274 if (tmp_res) {
4277 dprintk("unwind err %d dev %s\n", tmp_res, 4275 pr_debug("unwind err %d dev %s\n", tmp_res,
4278 slave->dev->name); 4276 slave->dev->name);
4279 } 4277 }
4280 } 4278 }
@@ -4593,7 +4591,7 @@ static int bond_init(struct net_device *bond_dev, struct bond_params *params)
4593{ 4591{
4594 struct bonding *bond = netdev_priv(bond_dev); 4592 struct bonding *bond = netdev_priv(bond_dev);
4595 4593
4596 dprintk("Begin bond_init for %s\n", bond_dev->name); 4594 pr_debug("Begin bond_init for %s\n", bond_dev->name);
4597 4595
4598 /* initialize rwlocks */ 4596 /* initialize rwlocks */
4599 rwlock_init(&bond->lock); 4597 rwlock_init(&bond->lock);