All of lore.kernel.org
 help / color / mirror / Atom feed
From: Amit Kumar Salecha <amit.salecha@qlogic.com>
To: davem@davemloft.net
Cc: netdev@vger.kernel.org, ameen.rahman@qlogic.com,
	Sony Chacko <sony.chacko@qlogic.com>
Subject: [PATCH NEXT 5/8] qlcnic: fix link status message
Date: Wed, 11 Aug 2010 05:05:26 -0700	[thread overview]
Message-ID: <1281528329-8812-6-git-send-email-amit.salecha@qlogic.com> (raw)
In-Reply-To: <1281528329-8812-1-git-send-email-amit.salecha@qlogic.com>

From: Sony Chacko <sony.chacko@qlogic.com>

Display interface name for link status message.
With dev_info pci number get printed.

Signed-off-by: Sony Chacko <sony.chacko@qlogic.com>
Signed-off-by: Amit Kumar Salecha <amit.salecha@qlogic.com>
---
 drivers/net/qlcnic/qlcnic_main.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/drivers/net/qlcnic/qlcnic_main.c b/drivers/net/qlcnic/qlcnic_main.c
index 96e8e75..7c9072d 100644
--- a/drivers/net/qlcnic/qlcnic_main.c
+++ b/drivers/net/qlcnic/qlcnic_main.c
@@ -1934,14 +1934,16 @@ void qlcnic_advert_link_change(struct qlcnic_adapter *adapter, int linkup)
 	struct net_device *netdev = adapter->netdev;
 
 	if (adapter->ahw.linkup && !linkup) {
-		dev_info(&netdev->dev, "NIC Link is down\n");
+		printk(KERN_INFO "%s: %s NIC Link is down\n",
+		       qlcnic_driver_name, netdev->name);
 		adapter->ahw.linkup = 0;
 		if (netif_running(netdev)) {
 			netif_carrier_off(netdev);
 			netif_stop_queue(netdev);
 		}
 	} else if (!adapter->ahw.linkup && linkup) {
-		dev_info(&netdev->dev, "NIC Link is up\n");
+		printk(KERN_INFO "%s: %s NIC Link is up\n",
+		       qlcnic_driver_name, netdev->name);
 		adapter->ahw.linkup = 1;
 		if (netif_running(netdev)) {
 			netif_carrier_on(netdev);
-- 
1.6.0.2


  parent reply	other threads:[~2010-08-11 12:05 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-11 12:05 [PATCH NEXT 0/8]qlcnic: enhancement and fixes Amit Kumar Salecha
2010-08-11 12:05 ` [PATCH NEXT 1/8] qlcnic: fix aer for virtual func Amit Kumar Salecha
2010-08-11 12:05 ` [PATCH NEXT 2/8] qlcnic: device state management fixes " Amit Kumar Salecha
2010-08-11 12:05 ` [PATCH NEXT 3/8] qlcnic: fix for setting function modes Amit Kumar Salecha
2010-08-11 12:05 ` [PATCH NEXT 4/8] qlcnic: add eswitch statistics support Amit Kumar Salecha
2010-08-11 12:05 ` Amit Kumar Salecha [this message]
2010-08-11 12:05 ` [PATCH NEXT 6/8] qlcnic: fix link diag test Amit Kumar Salecha
2010-08-11 12:05 ` [PATCH NEXT 7/8] qlcnic: turn off lro when rxcsum is disabled Amit Kumar Salecha
2010-08-11 12:05 ` [PATCH NEXT 8/8] qlcnic: update version 5.0.8.0 Amit Kumar Salecha
2010-08-12  3:41 ` [PATCH NEXT 0/8]qlcnic: enhancement and fixes Amit Salecha
2010-08-12  5:23   ` 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=1281528329-8812-6-git-send-email-amit.salecha@qlogic.com \
    --to=amit.salecha@qlogic.com \
    --cc=ameen.rahman@qlogic.com \
    --cc=davem@davemloft.net \
    --cc=netdev@vger.kernel.org \
    --cc=sony.chacko@qlogic.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.