[PATCH] [trivial] arcnet: Correct incorrect format string inARCnet drivers.

From: Steven Young
Date: Sun Apr 15 2012 - 11:40:04 EST



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@xxxxxxxxx>

---

--- 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);
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/