netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Veaceslav Falico <vfalico@gmail.com>
To: netdev@vger.kernel.org
Cc: Veaceslav Falico <vfalico@gmail.com>,
	Jay Vosburgh <j.vosburgh@gmail.com>,
	Andy Gospodarek <andy@greyhouse.net>
Subject: [PATCH net-next 08/12] bonding: convert bond_netlink.c to use netdev_printk instead of pr_
Date: Tue, 15 Jul 2014 19:36:05 +0200	[thread overview]
Message-ID: <1405445769-15394-9-git-send-email-vfalico@gmail.com> (raw)
In-Reply-To: <1405445769-15394-1-git-send-email-vfalico@gmail.com>

CC: Jay Vosburgh <j.vosburgh@gmail.com>
CC: Andy Gospodarek <andy@greyhouse.net>
Signed-off-by: Veaceslav Falico <vfalico@gmail.com>
---
 drivers/net/bonding/bond_netlink.c | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

diff --git a/drivers/net/bonding/bond_netlink.c b/drivers/net/bonding/bond_netlink.c
index 5ab3c18..d4e2932 100644
--- a/drivers/net/bonding/bond_netlink.c
+++ b/drivers/net/bonding/bond_netlink.c
@@ -181,8 +181,7 @@ static int bond_changelink(struct net_device *bond_dev,
 		int arp_interval = nla_get_u32(data[IFLA_BOND_ARP_INTERVAL]);
 
 		if (arp_interval && miimon) {
-			pr_err("%s: ARP monitoring cannot be used with MII monitoring\n",
-			       bond->dev->name);
+			netdev_err(bond->dev, "ARP monitoring cannot be used with MII monitoring\n");
 			return -EINVAL;
 		}
 
@@ -207,8 +206,7 @@ static int bond_changelink(struct net_device *bond_dev,
 			i++;
 		}
 		if (i == 0 && bond->params.arp_interval)
-			pr_warn("%s: Removing last arp target with arp_interval on\n",
-				bond->dev->name);
+			netdev_warn(bond->dev, "Removing last arp target with arp_interval on\n");
 		if (err)
 			return err;
 	}
@@ -216,8 +214,7 @@ static int bond_changelink(struct net_device *bond_dev,
 		int arp_validate = nla_get_u32(data[IFLA_BOND_ARP_VALIDATE]);
 
 		if (arp_validate && miimon) {
-			pr_err("%s: ARP validating cannot be used with MII monitoring\n",
-			       bond->dev->name);
+			netdev_err(bond->dev, "ARP validating cannot be used with MII monitoring\n");
 			return -EINVAL;
 		}
 
-- 
1.8.4

  parent reply	other threads:[~2014-07-15 17:40 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-15 17:35 [PATCH net-next 00/12] bonding: convert pr_* to netdev_* Veaceslav Falico
2014-07-15 17:35 ` [PATCH net-next 01/12] bonding: convert bond_main.c to use netdev_printk instead of pr_ Veaceslav Falico
2014-07-15 17:35 ` [PATCH net-next 02/12] bonding: remove pr_fmt from bond_main.c Veaceslav Falico
2014-07-15 17:36 ` [PATCH net-next 03/12] bonding: convert bond_3ad.c to use netdev_printk instead of pr_ Veaceslav Falico
2014-07-15 17:36 ` [PATCH net-next 04/12] bonding: remove pr_fmt from bond_3ad.c Veaceslav Falico
2014-07-15 17:36 ` [PATCH net-next 05/12] bonding: convert bond_alb.c to use netdev_printk instead of pr_ Veaceslav Falico
2014-07-15 17:36 ` [PATCH net-next 06/12] bonding: remove pr_fmt from bond_alb.c Veaceslav Falico
2014-07-15 17:36 ` [PATCH net-next 07/12] bonding: convert bond_debugfs.c to use netdev_printk instead of pr_ Veaceslav Falico
2014-07-15 17:36 ` Veaceslav Falico [this message]
2014-07-15 17:36 ` [PATCH net-next 09/12] bonding: bonding: remove pr_fmt from bond_netlink.c Veaceslav Falico
2014-07-15 17:36 ` [PATCH net-next 10/12] bonding: convert bond_procfs.c to use netdev_printk instead of pr_ Veaceslav Falico
2014-07-15 17:36 ` [PATCH net-next 11/12] bonding: convert bond_options.c " Veaceslav Falico
2014-07-15 17:36 ` [PATCH net-next 12/12] bonding: remove pr_fmt from bond_options.c Veaceslav Falico
2014-07-15 18:07 ` [PATCH net-next 00/12] bonding: convert pr_* to netdev_* Veaceslav Falico
2014-07-16  6:17 ` David Miller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1405445769-15394-9-git-send-email-vfalico@gmail.com \
    --to=vfalico@gmail.com \
    --cc=andy@greyhouse.net \
    --cc=j.vosburgh@gmail.com \
    --cc=netdev@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).