Messages in this thread Patch in this message | | | Date | Sun, 15 Apr 2012 16:32:20 +0100 | From | Steven Young <> | Subject | [PATCH] [trivial] arcnet: Correct incorrect format string in ARCnet drivers. |
| |
This patch corrects an incorrectly-used format string that causes messages like:
arc%d: Given: node 00h, shmem 0h, irq 0
to appear in dmesg at boot/modprobe time for the arcnet-rimi driver and others. This applies to linux-3.3.
Signed-off-by: Steven Young <sdyoung@vt220.org>
---
--- linux-3.3-orig/drivers/net/arcnet/arcnet.c 2012-03-18 23:15:34.000000000 +0000 +++ linux-3.3/drivers/net/arcnet/arcnet.c 2012-04-15 15:50:24.000000000 +0100 @@ -346,7 +346,7 @@ struct net_device *alloc_arcdev(const ch struct net_device *dev; dev = alloc_netdev(sizeof(struct arcnet_local), - name && *name ? name : "arc%d", arcdev_setup); + name && *name ? name : "arcnet", arcdev_setup); if(dev) { struct arcnet_local *lp = netdev_priv(dev); spin_lock_init(&lp->lock);
| |