net: Print the module name as part of the watchdog message
As suggested by Dave: This patch adds a function to get the driver name from a struct net_device, and consequently uses this in the watchdog timeout handler to print as part of the message. Signed-off-by: Arjan van de Ven <arjan@linux.intel.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
7943986ca1
commit
6579e57b31
@ -212,9 +212,9 @@ static void dev_watchdog(unsigned long arg)
|
||||
if (some_queue_stopped &&
|
||||
time_after(jiffies, (dev->trans_start +
|
||||
dev->watchdog_timeo))) {
|
||||
printk(KERN_INFO "NETDEV WATCHDOG: %s: "
|
||||
"transmit timed out\n",
|
||||
dev->name);
|
||||
char drivername[64];
|
||||
printk(KERN_INFO "NETDEV WATCHDOG: %s (%s): transmit timed out\n",
|
||||
dev->name, netdev_drivername(dev, drivername, 64));
|
||||
dev->tx_timeout(dev);
|
||||
WARN_ON_ONCE(1);
|
||||
}
|
||||
|
Reference in New Issue
Block a user