lkml.org 
[lkml]   [2012]   [Apr]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
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);

\
 
 \ /
  Last update: 2012-04-15 17:43    [W:1.205 / U:0.004 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site