[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20120415153220.GA11631@vt220.org>
Date:	Sun, 15 Apr 2012 16:32:20 +0100
From:	Steven Young <sdyoung@...20.org>
To:	trivial@...nel.org
Cc:	linux-kernel@...r.kernel.org
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@...20.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);
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/
Powered by blists - more mailing lists
 
