aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorArjan van de Ven <arjan@linux.intel.com>2008-07-21 16:31:48 -0400
committerDavid S. Miller <davem@davemloft.net>2008-07-21 16:31:48 -0400
commit6579e57b31d79d31d9b806e41ba48774e73257dc (patch)
tree03ba72024a1982ee76b8a891a443b0fdfb6d7c93 /include/linux
parent7943986ca1138ac99597b1aa4dc893012dcfdc08 (diff)
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>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/netdevice.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h
index 812bcd8b4363..f5ea445f89f0 100644
--- a/include/linux/netdevice.h
+++ b/include/linux/netdevice.h
@@ -1645,6 +1645,8 @@ extern void dev_seq_stop(struct seq_file *seq, void *v);
1645extern int netdev_class_create_file(struct class_attribute *class_attr); 1645extern int netdev_class_create_file(struct class_attribute *class_attr);
1646extern void netdev_class_remove_file(struct class_attribute *class_attr); 1646extern void netdev_class_remove_file(struct class_attribute *class_attr);
1647 1647
1648extern char *netdev_drivername(struct net_device *dev, char *buffer, int len);
1649
1648extern void linkwatch_run_queue(void); 1650extern void linkwatch_run_queue(void);
1649 1651
1650extern int netdev_compute_features(unsigned long all, unsigned long one); 1652extern int netdev_compute_features(unsigned long all, unsigned long one);