e1000e: typo corrections
authorJoe Perches <joe@perches.com>
Fri, 26 Mar 2010 20:16:59 +0000 (20:16 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 31 Mar 2010 06:02:27 +0000 (23:02 -0700)
Here are the other miscellaneous corrections
done by an earlier larger suggested patch now
made unnecessary by a less invasive change.

Correct a few missing newlines from logging
messages and a typo fix.  Fix speed/duplex
logging message.

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/e1000e/82571.c
drivers/net/e1000e/ich8lan.c
drivers/net/e1000e/lib.c

index 712ccc66ba25b5f1a6b1059a2b7e537a91aad7db..4b0016d69530dd78b0e3c2f4af29d7b5ce276520 100644 (file)
@@ -323,7 +323,7 @@ static s32 e1000_init_mac_params_82571(struct e1000_adapter *adapter)
        }
 
        /*
-        * Initialze device specific counter of SMBI acquisition
+        * Initialize device specific counter of SMBI acquisition
         * timeouts.
         */
         hw->dev_spec.e82571.smb_counter = 0;
index 8b5e157e9c879e2cd0c7d4373ada56e31d0ce251..5059c22155d9bb59f9a89862644a1ad1c8cb8563 100644 (file)
@@ -1622,7 +1622,7 @@ static s32 e1000_flash_cycle_init_ich8lan(struct e1000_hw *hw)
        /* Check if the flash descriptor is valid */
        if (hsfsts.hsf_status.fldesvalid == 0) {
                e_dbg("Flash descriptor invalid.  "
-                        "SW Sequencing must be used.");
+                        "SW Sequencing must be used.\n");
                return -E1000_ERR_NVM;
        }
 
@@ -1671,7 +1671,7 @@ static s32 e1000_flash_cycle_init_ich8lan(struct e1000_hw *hw)
                        hsfsts.hsf_status.flcdone = 1;
                        ew16flash(ICH_FLASH_HSFSTS, hsfsts.regval);
                } else {
-                       e_dbg("Flash controller busy, cannot get access");
+                       e_dbg("Flash controller busy, cannot get access\n");
                }
        }
 
@@ -1822,7 +1822,7 @@ static s32 e1000_read_flash_data_ich8lan(struct e1000_hw *hw, u32 offset,
                                continue;
                        } else if (hsfsts.hsf_status.flcdone == 0) {
                                e_dbg("Timeout error - flash cycle "
-                                        "did not complete.");
+                                        "did not complete.\n");
                                break;
                        }
                }
index a8b2c0de27c4084f138f510bf51a274fdd78bf80..b0d2a60aa4904f61dbfb686fb7c22bc8d803adb8 100644 (file)
@@ -1262,24 +1262,21 @@ s32 e1000e_get_speed_and_duplex_copper(struct e1000_hw *hw, u16 *speed, u16 *dup
        u32 status;
 
        status = er32(STATUS);
-       if (status & E1000_STATUS_SPEED_1000) {
+       if (status & E1000_STATUS_SPEED_1000)
                *speed = SPEED_1000;
-               e_dbg("1000 Mbs, ");
-       } else if (status & E1000_STATUS_SPEED_100) {
+       else if (status & E1000_STATUS_SPEED_100)
                *speed = SPEED_100;
-               e_dbg("100 Mbs, ");
-       } else {
+       else
                *speed = SPEED_10;
-               e_dbg("10 Mbs, ");
-       }
 
-       if (status & E1000_STATUS_FD) {
+       if (status & E1000_STATUS_FD)
                *duplex = FULL_DUPLEX;
-               e_dbg("Full Duplex\n");
-       } else {
+       else
                *duplex = HALF_DUPLEX;
-               e_dbg("Half Duplex\n");
-       }
+
+       e_dbg("%u Mbps, %s Duplex\n",
+             *speed == SPEED_1000 ? 1000 : *speed == SPEED_100 ? 100 : 10,
+             *duplex == FULL_DUPLEX ? "Full" : "Half");
 
        return 0;
 }