Commit d836200a authored by Jesper Juhl's avatar Jesper Juhl Committed by Peter P Waskiewicz Jr

igb: don't break user visible strings over multiple lines in igb_ethtool.c

Even when they go beyond 80 characters, user visible strings should be
on one line to make them easy to grep for.
Signed-off-by: default avatarJesper Juhl <jj@chaosbits.net>
Tested-by: default avatarJeff Pieper <jeffrey.e.pieper@intel.com>
Signed-off-by: default avatarPeter P Waskiewicz Jr <peter.p.waskiewicz.jr@intel.com>
parent 89d351c0
...@@ -209,8 +209,8 @@ static int igb_set_settings(struct net_device *netdev, struct ethtool_cmd *ecmd) ...@@ -209,8 +209,8 @@ static int igb_set_settings(struct net_device *netdev, struct ethtool_cmd *ecmd)
/* When SoL/IDER sessions are active, autoneg/speed/duplex /* When SoL/IDER sessions are active, autoneg/speed/duplex
* cannot be changed */ * cannot be changed */
if (igb_check_reset_block(hw)) { if (igb_check_reset_block(hw)) {
dev_err(&adapter->pdev->dev, "Cannot change link " dev_err(&adapter->pdev->dev,
"characteristics when SoL/IDER is active.\n"); "Cannot change link characteristics when SoL/IDER is active.\n");
return -EINVAL; return -EINVAL;
} }
...@@ -1089,8 +1089,8 @@ static bool reg_pattern_test(struct igb_adapter *adapter, u64 *data, ...@@ -1089,8 +1089,8 @@ static bool reg_pattern_test(struct igb_adapter *adapter, u64 *data,
wr32(reg, (_test[pat] & write)); wr32(reg, (_test[pat] & write));
val = rd32(reg) & mask; val = rd32(reg) & mask;
if (val != (_test[pat] & write & mask)) { if (val != (_test[pat] & write & mask)) {
dev_err(&adapter->pdev->dev, "pattern test reg %04X " dev_err(&adapter->pdev->dev,
"failed: got 0x%08X expected 0x%08X\n", "pattern test reg %04X failed: got 0x%08X expected 0x%08X\n",
reg, val, (_test[pat] & write & mask)); reg, val, (_test[pat] & write & mask));
*data = reg; *data = reg;
return 1; return 1;
...@@ -1108,8 +1108,8 @@ static bool reg_set_and_check(struct igb_adapter *adapter, u64 *data, ...@@ -1108,8 +1108,8 @@ static bool reg_set_and_check(struct igb_adapter *adapter, u64 *data,
wr32(reg, write & mask); wr32(reg, write & mask);
val = rd32(reg); val = rd32(reg);
if ((write & mask) != (val & mask)) { if ((write & mask) != (val & mask)) {
dev_err(&adapter->pdev->dev, "set/check reg %04X test failed:" dev_err(&adapter->pdev->dev,
" got 0x%08X expected 0x%08X\n", reg, "set/check reg %04X test failed: got 0x%08X expected 0x%08X\n", reg,
(val & mask), (write & mask)); (val & mask), (write & mask));
*data = reg; *data = reg;
return 1; return 1;
...@@ -1171,8 +1171,9 @@ static int igb_reg_test(struct igb_adapter *adapter, u64 *data) ...@@ -1171,8 +1171,9 @@ static int igb_reg_test(struct igb_adapter *adapter, u64 *data)
wr32(E1000_STATUS, toggle); wr32(E1000_STATUS, toggle);
after = rd32(E1000_STATUS) & toggle; after = rd32(E1000_STATUS) & toggle;
if (value != after) { if (value != after) {
dev_err(&adapter->pdev->dev, "failed STATUS register test " dev_err(&adapter->pdev->dev,
"got: 0x%08X expected: 0x%08X\n", after, value); "failed STATUS register test got: 0x%08X expected: 0x%08X\n",
after, value);
*data = 1; *data = 1;
return 1; return 1;
} }
...@@ -1777,16 +1778,14 @@ static int igb_loopback_test(struct igb_adapter *adapter, u64 *data) ...@@ -1777,16 +1778,14 @@ static int igb_loopback_test(struct igb_adapter *adapter, u64 *data)
* sessions are active */ * sessions are active */
if (igb_check_reset_block(&adapter->hw)) { if (igb_check_reset_block(&adapter->hw)) {
dev_err(&adapter->pdev->dev, dev_err(&adapter->pdev->dev,
"Cannot do PHY loopback test " "Cannot do PHY loopback test when SoL/IDER is active.\n");
"when SoL/IDER is active.\n");
*data = 0; *data = 0;
goto out; goto out;
} }
if ((adapter->hw.mac.type == e1000_i210) if ((adapter->hw.mac.type == e1000_i210)
|| (adapter->hw.mac.type == e1000_i211)) { || (adapter->hw.mac.type == e1000_i211)) {
dev_err(&adapter->pdev->dev, dev_err(&adapter->pdev->dev,
"Loopback test not supported " "Loopback test not supported on this part at this time.\n");
"on this part at this time.\n");
*data = 0; *data = 0;
goto out; goto out;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment