public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] [trivial] arcnet: Correct incorrect format string in ARCnet drivers.
@ 2012-04-15 15:32 Steven Young
  2012-04-16 12:02 ` [PATCH] arcnet: rimi: Fix device name in debug output Jiri Kosina
  0 siblings, 1 reply; 4+ messages in thread
From: Steven Young @ 2012-04-15 15:32 UTC (permalink / raw)
  To: trivial; +Cc: linux-kernel


  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);

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-04-18  2:26 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-15 15:32 [PATCH] [trivial] arcnet: Correct incorrect format string in ARCnet drivers Steven Young
2012-04-16 12:02 ` [PATCH] arcnet: rimi: Fix device name in debug output Jiri Kosina
2012-04-16 12:20   ` Steven Young
2012-04-18  2:24   ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox