diff options
author | Joe Perches <joe@perches.com> | 2009-08-24 13:29:45 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-08-31 01:34:55 -0400 |
commit | 6cef2b8eb73f1a8fd7c0ed528091ddc406fef950 (patch) | |
tree | 305efa5f51e4f5232637a02765a3dd348c7d7d73 /drivers | |
parent | d44570e4067aa8b832b1c1e1eb6da079f590d501 (diff) |
s2io.c: convert printks to pr_<level>
Fixed trivial typo as well
Signed-off-by: Joe Perches <joe@perches.com>
Acked-by: Sreenivasa Honnur <sreenivasa.honnur@neterion.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/s2io.c | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/drivers/net/s2io.c b/drivers/net/s2io.c index 003dd8c4734c..2805edd1a9ca 100644 --- a/drivers/net/s2io.c +++ b/drivers/net/s2io.c | |||
@@ -54,6 +54,8 @@ | |||
54 | * Possible values '1' for enable and '0' for disable. Default is '0' | 54 | * Possible values '1' for enable and '0' for disable. Default is '0' |
55 | ************************************************************************/ | 55 | ************************************************************************/ |
56 | 56 | ||
57 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | ||
58 | |||
57 | #include <linux/module.h> | 59 | #include <linux/module.h> |
58 | #include <linux/types.h> | 60 | #include <linux/types.h> |
59 | #include <linux/errno.h> | 61 | #include <linux/errno.h> |
@@ -5547,8 +5549,7 @@ static int s2io_ethtool_idnic(struct net_device *dev, u32 data) | |||
5547 | if ((sp->device_type == XFRAME_I_DEVICE) && ((subid & 0xFF) < 0x07)) { | 5549 | if ((sp->device_type == XFRAME_I_DEVICE) && ((subid & 0xFF) < 0x07)) { |
5548 | val64 = readq(&bar0->adapter_control); | 5550 | val64 = readq(&bar0->adapter_control); |
5549 | if (!(val64 & ADAPTER_CNTL_EN)) { | 5551 | if (!(val64 & ADAPTER_CNTL_EN)) { |
5550 | printk(KERN_ERR | 5552 | pr_err("Adapter Link down, cannot blink LED\n"); |
5551 | "Adapter Link down, cannot blink LED\n"); | ||
5552 | return -EFAULT; | 5553 | return -EFAULT; |
5553 | } | 5554 | } |
5554 | } | 5555 | } |
@@ -7130,8 +7131,7 @@ static int s2io_add_isr(struct s2io_nic *sp) | |||
7130 | } | 7131 | } |
7131 | } | 7132 | } |
7132 | if (!err) { | 7133 | if (!err) { |
7133 | printk(KERN_INFO "MSI-X-RX %d entries enabled\n", | 7134 | pr_info("MSI-X-RX %d entries enabled\n", --msix_rx_cnt); |
7134 | --msix_rx_cnt); | ||
7135 | DBG_PRINT(INFO_DBG, "MSI-X-TX entries enabled" | 7135 | DBG_PRINT(INFO_DBG, "MSI-X-TX entries enabled" |
7136 | " through alarm vector\n"); | 7136 | " through alarm vector\n"); |
7137 | } | 7137 | } |
@@ -8724,8 +8724,7 @@ static pci_ers_result_t s2io_io_slot_reset(struct pci_dev *pdev) | |||
8724 | struct s2io_nic *sp = netdev_priv(netdev); | 8724 | struct s2io_nic *sp = netdev_priv(netdev); |
8725 | 8725 | ||
8726 | if (pci_enable_device(pdev)) { | 8726 | if (pci_enable_device(pdev)) { |
8727 | printk(KERN_ERR "s2io: " | 8727 | pr_err("Cannot re-enable PCI device after reset.\n"); |
8728 | "Cannot re-enable PCI device after reset.\n"); | ||
8729 | return PCI_ERS_RESULT_DISCONNECT; | 8728 | return PCI_ERS_RESULT_DISCONNECT; |
8730 | } | 8729 | } |
8731 | 8730 | ||
@@ -8749,15 +8748,13 @@ static void s2io_io_resume(struct pci_dev *pdev) | |||
8749 | 8748 | ||
8750 | if (netif_running(netdev)) { | 8749 | if (netif_running(netdev)) { |
8751 | if (s2io_card_up(sp)) { | 8750 | if (s2io_card_up(sp)) { |
8752 | printk(KERN_ERR "s2io: " | 8751 | pr_err("Can't bring device back up after reset.\n"); |
8753 | "Can't bring device back up after reset.\n"); | ||
8754 | return; | 8752 | return; |
8755 | } | 8753 | } |
8756 | 8754 | ||
8757 | if (s2io_set_mac_addr(netdev, netdev->dev_addr) == FAILURE) { | 8755 | if (s2io_set_mac_addr(netdev, netdev->dev_addr) == FAILURE) { |
8758 | s2io_card_down(sp); | 8756 | s2io_card_down(sp); |
8759 | printk(KERN_ERR "s2io: " | 8757 | pr_err("Can't restore mac addr after reset.\n"); |
8760 | "Can't resetore mac addr after reset.\n"); | ||
8761 | return; | 8758 | return; |
8762 | } | 8759 | } |
8763 | } | 8760 | } |