Commit a5f24542 authored by Veaceslav Falico's avatar Veaceslav Falico Committed by David S. Miller

bonding: convert bond_netlink.c to use netdev_printk instead of pr_

CC: Jay Vosburgh <j.vosburgh@gmail.com>
CC: Andy Gospodarek <andy@greyhouse.net>
Signed-off-by: default avatarVeaceslav Falico <vfalico@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 9ef1cf16
...@@ -181,8 +181,7 @@ static int bond_changelink(struct net_device *bond_dev, ...@@ -181,8 +181,7 @@ static int bond_changelink(struct net_device *bond_dev,
int arp_interval = nla_get_u32(data[IFLA_BOND_ARP_INTERVAL]); int arp_interval = nla_get_u32(data[IFLA_BOND_ARP_INTERVAL]);
if (arp_interval && miimon) { if (arp_interval && miimon) {
pr_err("%s: ARP monitoring cannot be used with MII monitoring\n", netdev_err(bond->dev, "ARP monitoring cannot be used with MII monitoring\n");
bond->dev->name);
return -EINVAL; return -EINVAL;
} }
...@@ -207,8 +206,7 @@ static int bond_changelink(struct net_device *bond_dev, ...@@ -207,8 +206,7 @@ static int bond_changelink(struct net_device *bond_dev,
i++; i++;
} }
if (i == 0 && bond->params.arp_interval) if (i == 0 && bond->params.arp_interval)
pr_warn("%s: Removing last arp target with arp_interval on\n", netdev_warn(bond->dev, "Removing last arp target with arp_interval on\n");
bond->dev->name);
if (err) if (err)
return err; return err;
} }
...@@ -216,8 +214,7 @@ static int bond_changelink(struct net_device *bond_dev, ...@@ -216,8 +214,7 @@ static int bond_changelink(struct net_device *bond_dev,
int arp_validate = nla_get_u32(data[IFLA_BOND_ARP_VALIDATE]); int arp_validate = nla_get_u32(data[IFLA_BOND_ARP_VALIDATE]);
if (arp_validate && miimon) { if (arp_validate && miimon) {
pr_err("%s: ARP validating cannot be used with MII monitoring\n", netdev_err(bond->dev, "ARP validating cannot be used with MII monitoring\n");
bond->dev->name);
return -EINVAL; return -EINVAL;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment