Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 43192
b: refs/heads/master
c: 9f88f29
h: refs/heads/master
v: v3
  • Loading branch information
Michael Chan authored and David S. Miller committed Dec 7, 2006
1 parent 6721553 commit 0d904ed
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3600d918d870456ea8e7bb9d47f327de5c20f3d6
refs/heads/master: 9f88f29fc502192824aba092e90af1297a87eb82
15 changes: 10 additions & 5 deletions trunk/drivers/net/tg3.c
Original file line number Diff line number Diff line change
Expand Up @@ -1402,8 +1402,10 @@ static int tg3_set_power_state(struct tg3 *tp, pci_power_t state)
static void tg3_link_report(struct tg3 *tp)
{
if (!netif_carrier_ok(tp->dev)) {
printk(KERN_INFO PFX "%s: Link is down.\n", tp->dev->name);
} else {
if (netif_msg_link(tp))
printk(KERN_INFO PFX "%s: Link is down.\n",
tp->dev->name);
} else if (netif_msg_link(tp)) {
printk(KERN_INFO PFX "%s: Link is up at %d Mbps, %s duplex.\n",
tp->dev->name,
(tp->link_config.active_speed == SPEED_1000 ?
Expand Down Expand Up @@ -3710,8 +3712,9 @@ static void tg3_tx_timeout(struct net_device *dev)
{
struct tg3 *tp = netdev_priv(dev);

printk(KERN_ERR PFX "%s: transmit timed out, resetting\n",
dev->name);
if (netif_msg_tx_err(tp))
printk(KERN_ERR PFX "%s: transmit timed out, resetting\n",
dev->name);

schedule_work(&tp->reset_task);
}
Expand Down Expand Up @@ -8665,7 +8668,9 @@ static int tg3_test_registers(struct tg3 *tp)
return 0;

out:
printk(KERN_ERR PFX "Register test failed at offset %x\n", offset);
if (netif_msg_hw(tp))
printk(KERN_ERR PFX "Register test failed at offset %x\n",
offset);
tw32(offset, save_val);
return -EIO;
}
Expand Down

0 comments on commit 0d904ed

Please sign in to comment.