lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Wed, 09 Jul 2008 10:20:55 -0700 From: Joe Perches <joe@...ches.com> To: Stephen Hemminger <stephen.hemminger@...tta.com> Cc: Arjan van de Ven <arjan@...radead.org>, David Miller <davem@...emloft.net>, swise@...ngridcomputing.com, rdreier@...co.com, shemminger@...tta.com, netdev@...r.kernel.org Subject: Re: Printing the driver name as part of the netdev watchdog message 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)); -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@...r.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists