Subject: Re: Printing the driver name as part of the netdev watchdog message

From: Joe Perches <[email-masked]>
Date: Wed, 09 Jul 2008 10:20:55 -0700

On Tue, 2008-07-08 at 20:16 -0700, Stephen Hemminger wrote:
> > +void netdev_drivername(struct net_device *dev, char *buffer, int len)
> void netdev_drivername(const struct net_device *dev, char *buffer, int len)
> since net device not changed.

char *netdev_drivername(const struct net_dev *dev, char *buffer, size_t len)

size_t len and returns *buffer

allows:

	char drivername[64];
        printk(KERN_INFO "NETDEV WATCHDOG: %s (%s): transmit timed out\n",
               dev->name, netdev_drivername(dev, drivername, sizeof(drivername));