aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarolyn Wyborny <carolyn.wyborny@intel.com>2014-04-10 21:45:17 -0400
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2014-04-23 04:22:19 -0400
commitc75c4edfc38da8235d110a8f28b596193de787ab (patch)
tree3411303cc42d6a38f01a2abc2cc7bd43de811d86
parent0e8e842b8105e521287c3305806099f370986fb1 (diff)
igb: Cleanups for messaging
This patch fixes WARNING:PREFER_PR_LEVEL and WARNING:SPLIT_STRING from checkpatch file check. Signed-off-by: Carolyn Wyborny <carolyn.wyborny@intel.com> Tested-by: Aaron Brown <aaron.f.brown@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
-rw-r--r--drivers/net/ethernet/intel/igb/e1000_82575.c8
-rw-r--r--drivers/net/ethernet/intel/igb/e1000_mac.c6
-rw-r--r--drivers/net/ethernet/intel/igb/e1000_phy.c3
-rw-r--r--drivers/net/ethernet/intel/igb/igb_main.c34
4 files changed, 18 insertions, 33 deletions
diff --git a/drivers/net/ethernet/intel/igb/e1000_82575.c b/drivers/net/ethernet/intel/igb/e1000_82575.c
index fa36fe12e775..7b7d08c3461d 100644
--- a/drivers/net/ethernet/intel/igb/e1000_82575.c
+++ b/drivers/net/ethernet/intel/igb/e1000_82575.c
@@ -1676,7 +1676,7 @@ static s32 igb_setup_serdes_link_82575(struct e1000_hw *hw)
1676 hw->mac.type == e1000_82576) { 1676 hw->mac.type == e1000_82576) {
1677 ret_val = hw->nvm.ops.read(hw, NVM_COMPAT, 1, &data); 1677 ret_val = hw->nvm.ops.read(hw, NVM_COMPAT, 1, &data);
1678 if (ret_val) { 1678 if (ret_val) {
1679 printk(KERN_DEBUG "NVM Read Error\n\n"); 1679 hw_dbg(KERN_DEBUG "NVM Read Error\n\n");
1680 return ret_val; 1680 return ret_val;
1681 } 1681 }
1682 1682
@@ -2436,8 +2436,7 @@ static s32 igb_update_nvm_checksum_82580(struct e1000_hw *hw)
2436 2436
2437 ret_val = hw->nvm.ops.read(hw, NVM_COMPATIBILITY_REG_3, 1, &nvm_data); 2437 ret_val = hw->nvm.ops.read(hw, NVM_COMPATIBILITY_REG_3, 1, &nvm_data);
2438 if (ret_val) { 2438 if (ret_val) {
2439 hw_dbg("NVM Read Error while updating checksum" 2439 hw_dbg("NVM Read Error while updating checksum compatibility bit.\n");
2440 " compatibility bit.\n");
2441 goto out; 2440 goto out;
2442 } 2441 }
2443 2442
@@ -2447,8 +2446,7 @@ static s32 igb_update_nvm_checksum_82580(struct e1000_hw *hw)
2447 ret_val = hw->nvm.ops.write(hw, NVM_COMPATIBILITY_REG_3, 1, 2446 ret_val = hw->nvm.ops.write(hw, NVM_COMPATIBILITY_REG_3, 1,
2448 &nvm_data); 2447 &nvm_data);
2449 if (ret_val) { 2448 if (ret_val) {
2450 hw_dbg("NVM Write Error while updating checksum" 2449 hw_dbg("NVM Write Error while updating checksum compatibility bit.\n");
2451 " compatibility bit.\n");
2452 goto out; 2450 goto out;
2453 } 2451 }
2454 } 2452 }
diff --git a/drivers/net/ethernet/intel/igb/e1000_mac.c b/drivers/net/ethernet/intel/igb/e1000_mac.c
index 5910a932ea7c..fc2c76e0f4a5 100644
--- a/drivers/net/ethernet/intel/igb/e1000_mac.c
+++ b/drivers/net/ethernet/intel/igb/e1000_mac.c
@@ -866,8 +866,7 @@ s32 igb_config_fc_after_link_up(struct e1000_hw *hw)
866 goto out; 866 goto out;
867 867
868 if (!(mii_status_reg & MII_SR_AUTONEG_COMPLETE)) { 868 if (!(mii_status_reg & MII_SR_AUTONEG_COMPLETE)) {
869 hw_dbg("Copper PHY and Auto Neg " 869 hw_dbg("Copper PHY and Auto Neg has not completed.\n");
870 "has not completed.\n");
871 goto out; 870 goto out;
872 } 871 }
873 872
@@ -932,8 +931,7 @@ s32 igb_config_fc_after_link_up(struct e1000_hw *hw)
932 hw_dbg("Flow Control = FULL.\r\n"); 931 hw_dbg("Flow Control = FULL.\r\n");
933 } else { 932 } else {
934 hw->fc.current_mode = e1000_fc_rx_pause; 933 hw->fc.current_mode = e1000_fc_rx_pause;
935 hw_dbg("Flow Control = " 934 hw_dbg("Flow Control = RX PAUSE frames only.\r\n");
936 "RX PAUSE frames only.\r\n");
937 } 935 }
938 } 936 }
939 /* For receiving PAUSE frames ONLY. 937 /* For receiving PAUSE frames ONLY.
diff --git a/drivers/net/ethernet/intel/igb/e1000_phy.c b/drivers/net/ethernet/intel/igb/e1000_phy.c
index 4009bbab7407..ec7dc6c511bb 100644
--- a/drivers/net/ethernet/intel/igb/e1000_phy.c
+++ b/drivers/net/ethernet/intel/igb/e1000_phy.c
@@ -924,8 +924,7 @@ static s32 igb_copper_link_autoneg(struct e1000_hw *hw)
924 if (phy->autoneg_wait_to_complete) { 924 if (phy->autoneg_wait_to_complete) {
925 ret_val = igb_wait_autoneg(hw); 925 ret_val = igb_wait_autoneg(hw);
926 if (ret_val) { 926 if (ret_val) {
927 hw_dbg("Error while waiting for " 927 hw_dbg("Error while waiting for autoneg to complete\n");
928 "autoneg to complete\n");
929 goto out; 928 goto out;
930 } 929 }
931 } 930 }
diff --git a/drivers/net/ethernet/intel/igb/igb_main.c b/drivers/net/ethernet/intel/igb/igb_main.c
index fb98d4602f9d..13edca95e56d 100644
--- a/drivers/net/ethernet/intel/igb/igb_main.c
+++ b/drivers/net/ethernet/intel/igb/igb_main.c
@@ -217,8 +217,7 @@ static void igb_netpoll(struct net_device *);
217#ifdef CONFIG_PCI_IOV 217#ifdef CONFIG_PCI_IOV
218static unsigned int max_vfs = 0; 218static unsigned int max_vfs = 0;
219module_param(max_vfs, uint, 0); 219module_param(max_vfs, uint, 0);
220MODULE_PARM_DESC(max_vfs, "Maximum number of virtual functions to allocate " 220MODULE_PARM_DESC(max_vfs, "Maximum number of virtual functions to allocate per physical function");
221 "per physical function");
222#endif /* CONFIG_PCI_IOV */ 221#endif /* CONFIG_PCI_IOV */
223 222
224static pci_ers_result_t igb_io_error_detected(struct pci_dev *, 223static pci_ers_result_t igb_io_error_detected(struct pci_dev *,
@@ -384,8 +383,7 @@ static void igb_dump(struct igb_adapter *adapter)
384 /* Print netdevice Info */ 383 /* Print netdevice Info */
385 if (netdev) { 384 if (netdev) {
386 dev_info(&adapter->pdev->dev, "Net device Info\n"); 385 dev_info(&adapter->pdev->dev, "Net device Info\n");
387 pr_info("Device Name state trans_start " 386 pr_info("Device Name state trans_start last_rx\n");
388 "last_rx\n");
389 pr_info("%-15s %016lX %016lX %016lX\n", netdev->name, 387 pr_info("%-15s %016lX %016lX %016lX\n", netdev->name,
390 netdev->state, netdev->trans_start, netdev->last_rx); 388 netdev->state, netdev->trans_start, netdev->last_rx);
391 } 389 }
@@ -438,9 +436,7 @@ static void igb_dump(struct igb_adapter *adapter)
438 pr_info("------------------------------------\n"); 436 pr_info("------------------------------------\n");
439 pr_info("TX QUEUE INDEX = %d\n", tx_ring->queue_index); 437 pr_info("TX QUEUE INDEX = %d\n", tx_ring->queue_index);
440 pr_info("------------------------------------\n"); 438 pr_info("------------------------------------\n");
441 pr_info("T [desc] [address 63:0 ] [PlPOCIStDDM Ln] " 439 pr_info("T [desc] [address 63:0 ] [PlPOCIStDDM Ln] [bi->dma ] leng ntw timestamp bi->skb\n");
442 "[bi->dma ] leng ntw timestamp "
443 "bi->skb\n");
444 440
445 for (i = 0; tx_ring->desc && (i < tx_ring->count); i++) { 441 for (i = 0; tx_ring->desc && (i < tx_ring->count); i++) {
446 const char *next_desc; 442 const char *next_desc;
@@ -458,9 +454,8 @@ static void igb_dump(struct igb_adapter *adapter)
458 else 454 else
459 next_desc = ""; 455 next_desc = "";
460 456
461 pr_info("T [0x%03X] %016llX %016llX %016llX" 457 pr_info("T [0x%03X] %016llX %016llX %016llX %04X %p %016llX %p%s\n",
462 " %04X %p %016llX %p%s\n", i, 458 i, le64_to_cpu(u0->a),
463 le64_to_cpu(u0->a),
464 le64_to_cpu(u0->b), 459 le64_to_cpu(u0->b),
465 (u64)dma_unmap_addr(buffer_info, dma), 460 (u64)dma_unmap_addr(buffer_info, dma),
466 dma_unmap_len(buffer_info, len), 461 dma_unmap_len(buffer_info, len),
@@ -519,10 +514,8 @@ rx_ring_summary:
519 pr_info("------------------------------------\n"); 514 pr_info("------------------------------------\n");
520 pr_info("RX QUEUE INDEX = %d\n", rx_ring->queue_index); 515 pr_info("RX QUEUE INDEX = %d\n", rx_ring->queue_index);
521 pr_info("------------------------------------\n"); 516 pr_info("------------------------------------\n");
522 pr_info("R [desc] [ PktBuf A0] [ HeadBuf DD] " 517 pr_info("R [desc] [ PktBuf A0] [ HeadBuf DD] [bi->dma ] [bi->skb] <-- Adv Rx Read format\n");
523 "[bi->dma ] [bi->skb] <-- Adv Rx Read format\n"); 518 pr_info("RWB[desc] [PcsmIpSHl PtRs] [vl er S cks ln] ---------------- [bi->skb] <-- Adv Rx Write-Back format\n");
524 pr_info("RWB[desc] [PcsmIpSHl PtRs] [vl er S cks ln] -----"
525 "----------- [bi->skb] <-- Adv Rx Write-Back format\n");
526 519
527 for (i = 0; i < rx_ring->count; i++) { 520 for (i = 0; i < rx_ring->count; i++) {
528 const char *next_desc; 521 const char *next_desc;
@@ -4215,8 +4208,8 @@ static void igb_watchdog_task(struct work_struct *work)
4215 4208
4216 ctrl = rd32(E1000_CTRL); 4209 ctrl = rd32(E1000_CTRL);
4217 /* Links status message must follow this format */ 4210 /* Links status message must follow this format */
4218 printk(KERN_INFO "igb: %s NIC Link is Up %d Mbps %s " 4211 netdev_info(netdev,
4219 "Duplex, Flow Control: %s\n", 4212 "igb: %s NIC Link is Up %d Mbps %s Duplex, Flow Control: %s\n",
4220 netdev->name, 4213 netdev->name,
4221 adapter->link_speed, 4214 adapter->link_speed,
4222 adapter->link_duplex == FULL_DUPLEX ? 4215 adapter->link_duplex == FULL_DUPLEX ?
@@ -4243,9 +4236,7 @@ static void igb_watchdog_task(struct work_struct *work)
4243 /* check for thermal sensor event */ 4236 /* check for thermal sensor event */
4244 if (igb_thermal_sensor_event(hw, 4237 if (igb_thermal_sensor_event(hw,
4245 E1000_THSTAT_LINK_THROTTLE)) { 4238 E1000_THSTAT_LINK_THROTTLE)) {
4246 netdev_info(netdev, "The network adapter link " 4239 netdev_info(netdev, "The network adapter link speed was downshifted because it overheated\n");
4247 "speed was downshifted because it "
4248 "overheated\n");
4249 } 4240 }
4250 4241
4251 /* adjust timeout factor according to speed/duplex */ 4242 /* adjust timeout factor according to speed/duplex */
@@ -4277,12 +4268,11 @@ static void igb_watchdog_task(struct work_struct *work)
4277 /* check for thermal sensor event */ 4268 /* check for thermal sensor event */
4278 if (igb_thermal_sensor_event(hw, 4269 if (igb_thermal_sensor_event(hw,
4279 E1000_THSTAT_PWR_DOWN)) { 4270 E1000_THSTAT_PWR_DOWN)) {
4280 netdev_err(netdev, "The network adapter was " 4271 netdev_err(netdev, "The network adapter was stopped because it overheated\n");
4281 "stopped because it overheated\n");
4282 } 4272 }
4283 4273
4284 /* Links status message must follow this format */ 4274 /* Links status message must follow this format */
4285 printk(KERN_INFO "igb: %s NIC Link is Down\n", 4275 netdev_info(netdev, "igb: %s NIC Link is Down\n",
4286 netdev->name); 4276 netdev->name);
4287 netif_carrier_off(netdev); 4277 netif_carrier_off(netdev);
4288 4278