aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2015-05-05 13:05:56 -0400
committerMichael Grzeschik <m.grzeschik@pengutronix.de>2015-09-23 02:44:24 -0400
commit05a24b234b9dda3720208b74503f2cf1d05774ee (patch)
tree117e7e1908f427ed51b441deb0d2efed71d1d0d1
parenta34c0932c3b2f28542825ffc5280d562c49ad42d (diff)
arcnet: Convert printk to pr_<level>
Use the more current logging style. Remove #define VERSION, use pr_info normally. Add pr_fmt with "arcnet:" prefixes and KBUILD_MODNAME. Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
-rw-r--r--drivers/net/arcnet/arc-rawmode.c6
-rw-r--r--drivers/net/arcnet/arc-rimi.c21
-rw-r--r--drivers/net/arcnet/arcnet.c25
-rw-r--r--drivers/net/arcnet/capmode.c6
-rw-r--r--drivers/net/arcnet/com20020-isa.c9
-rw-r--r--drivers/net/arcnet/com20020-pci.c9
-rw-r--r--drivers/net/arcnet/com20020.c7
-rw-r--r--drivers/net/arcnet/com20020_cs.c5
-rw-r--r--drivers/net/arcnet/com90io.c11
-rw-r--r--drivers/net/arcnet/com90xx.c17
-rw-r--r--drivers/net/arcnet/rfc1051.c7
-rw-r--r--drivers/net/arcnet/rfc1201.c6
12 files changed, 65 insertions, 64 deletions
diff --git a/drivers/net/arcnet/arc-rawmode.c b/drivers/net/arcnet/arc-rawmode.c
index 034c8988f987..e4a27029e1c0 100644
--- a/drivers/net/arcnet/arc-rawmode.c
+++ b/drivers/net/arcnet/arc-rawmode.c
@@ -24,6 +24,8 @@
24 * ********************** 24 * **********************
25 */ 25 */
26 26
27#define pr_fmt(fmt) "arcnet:" KBUILD_MODNAME ": " fmt
28
27#include <linux/module.h> 29#include <linux/module.h>
28#include <linux/gfp.h> 30#include <linux/gfp.h>
29#include <linux/init.h> 31#include <linux/init.h>
@@ -33,8 +35,6 @@
33#include <linux/skbuff.h> 35#include <linux/skbuff.h>
34#include <linux/arcdevice.h> 36#include <linux/arcdevice.h>
35 37
36#define VERSION "arcnet: raw mode (`r') encapsulation support loaded.\n"
37
38static void rx(struct net_device *dev, int bufnum, 38static void rx(struct net_device *dev, int bufnum,
39 struct archdr *pkthdr, int length); 39 struct archdr *pkthdr, int length);
40static int build_header(struct sk_buff *skb, struct net_device *dev, 40static int build_header(struct sk_buff *skb, struct net_device *dev,
@@ -56,7 +56,7 @@ static int __init arcnet_raw_init(void)
56{ 56{
57 int count; 57 int count;
58 58
59 printk(VERSION); 59 pr_info("%s\n", "raw mode (`r') encapsulation support loaded");
60 60
61 for (count = 0; count < 256; count++) 61 for (count = 0; count < 256; count++)
62 if (arc_proto_map[count] == arc_proto_default) 62 if (arc_proto_map[count] == arc_proto_default)
diff --git a/drivers/net/arcnet/arc-rimi.c b/drivers/net/arcnet/arc-rimi.c
index 25f84b7437f3..7360214e3d3f 100644
--- a/drivers/net/arcnet/arc-rimi.c
+++ b/drivers/net/arcnet/arc-rimi.c
@@ -24,6 +24,9 @@
24 * 24 *
25 * ********************** 25 * **********************
26 */ 26 */
27
28#define pr_fmt(fmt) "arcnet:" KBUILD_MODNAME ": " fmt
29
27#include <linux/kernel.h> 30#include <linux/kernel.h>
28#include <linux/module.h> 31#include <linux/module.h>
29#include <linux/moduleparam.h> 32#include <linux/moduleparam.h>
@@ -36,8 +39,6 @@
36#include <linux/io.h> 39#include <linux/io.h>
37#include <linux/arcdevice.h> 40#include <linux/arcdevice.h>
38 41
39#define VERSION "arcnet: RIM I (entirely mem-mapped) support\n"
40
41/* Internal function declarations */ 42/* Internal function declarations */
42 43
43static int arcrimi_probe(struct net_device *dev); 44static int arcrimi_probe(struct net_device *dev);
@@ -83,20 +84,20 @@ static void arcrimi_copy_from_card(struct net_device *dev, int bufnum, int offse
83static int __init arcrimi_probe(struct net_device *dev) 84static int __init arcrimi_probe(struct net_device *dev)
84{ 85{
85 if (BUGLVL(D_NORMAL)) { 86 if (BUGLVL(D_NORMAL)) {
86 printk(VERSION); 87 pr_info("%s\n", "RIM I (entirely mem-mapped) support");
87 printk("E-mail me if you actually test the RIM I driver, please!\n"); 88 pr_info("E-mail me if you actually test the RIM I driver, please!\n");
88 printk("Given: node %02Xh, shmem %lXh, irq %d\n", 89 pr_info("Given: node %02Xh, shmem %lXh, irq %d\n",
89 dev->dev_addr[0], dev->mem_start, dev->irq); 90 dev->dev_addr[0], dev->mem_start, dev->irq);
90 } 91 }
91 92
92 if (dev->mem_start <= 0 || dev->irq <= 0) { 93 if (dev->mem_start <= 0 || dev->irq <= 0) {
93 if (BUGLVL(D_NORMAL)) 94 if (BUGLVL(D_NORMAL))
94 printk("No autoprobe for RIM I; you must specify the shmem and irq!\n"); 95 pr_err("No autoprobe for RIM I; you must specify the shmem and irq!\n");
95 return -ENODEV; 96 return -ENODEV;
96 } 97 }
97 if (dev->dev_addr[0] == 0) { 98 if (dev->dev_addr[0] == 0) {
98 if (BUGLVL(D_NORMAL)) 99 if (BUGLVL(D_NORMAL))
99 printk("You need to specify your card's station ID!\n"); 100 pr_err("You need to specify your card's station ID!\n");
100 return -ENODEV; 101 return -ENODEV;
101 } 102 }
102 /* Grab the memory region at mem_start for MIRROR_SIZE bytes. 103 /* Grab the memory region at mem_start for MIRROR_SIZE bytes.
@@ -106,7 +107,7 @@ static int __init arcrimi_probe(struct net_device *dev)
106 */ 107 */
107 if (!request_mem_region(dev->mem_start, MIRROR_SIZE, "arcnet (90xx)")) { 108 if (!request_mem_region(dev->mem_start, MIRROR_SIZE, "arcnet (90xx)")) {
108 if (BUGLVL(D_NORMAL)) 109 if (BUGLVL(D_NORMAL))
109 printk("Card memory already allocated\n"); 110 pr_notice("Card memory already allocated\n");
110 return -ENODEV; 111 return -ENODEV;
111 } 112 }
112 return arcrimi_found(dev); 113 return arcrimi_found(dev);
@@ -375,7 +376,7 @@ static int __init arcrimi_setup(char *s)
375 return 1; 376 return 1;
376 switch (ints[0]) { 377 switch (ints[0]) {
377 default: /* ERROR */ 378 default: /* ERROR */
378 printk("arcrimi: Too many arguments.\n"); 379 pr_err("Too many arguments\n");
379 case 3: /* Node ID */ 380 case 3: /* Node ID */
380 node = ints[3]; 381 node = ints[3];
381 case 2: /* IRQ */ 382 case 2: /* IRQ */
diff --git a/drivers/net/arcnet/arcnet.c b/drivers/net/arcnet/arcnet.c
index 2aab7e2f7e4a..2be8ab66d067 100644
--- a/drivers/net/arcnet/arcnet.c
+++ b/drivers/net/arcnet/arcnet.c
@@ -41,7 +41,7 @@
41 * <jojo@repas.de> 41 * <jojo@repas.de>
42 */ 42 */
43 43
44#define VERSION "arcnet: v3.94 BETA 2007/02/08 - by Avery Pennarun et al.\n" 44#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
45 45
46#include <linux/module.h> 46#include <linux/module.h>
47#include <linux/types.h> 47#include <linux/types.h>
@@ -114,18 +114,7 @@ static int __init arcnet_init(void)
114 114
115 arcnet_debug = debug; 115 arcnet_debug = debug;
116 116
117 printk("arcnet loaded.\n"); 117 pr_info("arcnet loaded\n");
118
119#ifdef ALPHA_WARNING
120 if (BUGLVL(D_EXTRA)) {
121 printk("arcnet: ***\n"
122 "arcnet: * Read arcnet.txt for important release notes!\n"
123 "arcnet: *\n"
124 "arcnet: * This is an ALPHA version! (Last stable release: v3.02) E-mail\n"
125 "arcnet: * me if you have any questions, comments, or bug reports.\n"
126 "arcnet: ***\n");
127 }
128#endif
129 118
130 /* initialize the protocol map */ 119 /* initialize the protocol map */
131 arc_raw_proto = arc_proto_default = arc_bcast_proto = &arc_proto_null; 120 arc_raw_proto = arc_proto_default = arc_bcast_proto = &arc_proto_null;
@@ -133,10 +122,12 @@ static int __init arcnet_init(void)
133 arc_proto_map[count] = arc_proto_default; 122 arc_proto_map[count] = arc_proto_default;
134 123
135 if (BUGLVL(D_DURING)) 124 if (BUGLVL(D_DURING))
136 printk("arcnet: struct sizes: %Zd %Zd %Zd %Zd %Zd\n", 125 pr_info("struct sizes: %Zd %Zd %Zd %Zd %Zd\n",
137 sizeof(struct arc_hardware), sizeof(struct arc_rfc1201), 126 sizeof(struct arc_hardware),
138 sizeof(struct arc_rfc1051), sizeof(struct arc_eth_encap), 127 sizeof(struct arc_rfc1201),
139 sizeof(struct archdr)); 128 sizeof(struct arc_rfc1051),
129 sizeof(struct arc_eth_encap),
130 sizeof(struct archdr));
140 131
141 return 0; 132 return 0;
142} 133}
diff --git a/drivers/net/arcnet/capmode.c b/drivers/net/arcnet/capmode.c
index d62d1accf4b6..92b553e70d5c 100644
--- a/drivers/net/arcnet/capmode.c
+++ b/drivers/net/arcnet/capmode.c
@@ -26,6 +26,8 @@
26 * ********************** 26 * **********************
27 */ 27 */
28 28
29#define pr_fmt(fmt) "arcnet:" KBUILD_MODNAME ": " fmt
30
29#include <linux/module.h> 31#include <linux/module.h>
30#include <linux/gfp.h> 32#include <linux/gfp.h>
31#include <linux/init.h> 33#include <linux/init.h>
@@ -35,8 +37,6 @@
35#include <linux/skbuff.h> 37#include <linux/skbuff.h>
36#include <linux/arcdevice.h> 38#include <linux/arcdevice.h>
37 39
38#define VERSION "arcnet: cap mode (`c') encapsulation support loaded.\n"
39
40/* packet receiver */ 40/* packet receiver */
41static void rx(struct net_device *dev, int bufnum, 41static void rx(struct net_device *dev, int bufnum,
42 struct archdr *pkthdr, int length) 42 struct archdr *pkthdr, int length)
@@ -259,7 +259,7 @@ static void arcnet_cap_init(void)
259 259
260static int __init capmode_module_init(void) 260static int __init capmode_module_init(void)
261{ 261{
262 printk(VERSION); 262 pr_info("%s\n", "cap mode (`c') encapsulation support loaded");
263 arcnet_cap_init(); 263 arcnet_cap_init();
264 return 0; 264 return 0;
265} 265}
diff --git a/drivers/net/arcnet/com20020-isa.c b/drivers/net/arcnet/com20020-isa.c
index c3748f7c5081..f3b2222bcada 100644
--- a/drivers/net/arcnet/com20020-isa.c
+++ b/drivers/net/arcnet/com20020-isa.c
@@ -25,6 +25,9 @@
25 * 25 *
26 * ********************** 26 * **********************
27 */ 27 */
28
29#define pr_fmt(fmt) "arcnet:" KBUILD_MODNAME ": " fmt
30
28#include <linux/module.h> 31#include <linux/module.h>
29#include <linux/moduleparam.h> 32#include <linux/moduleparam.h>
30#include <linux/kernel.h> 33#include <linux/kernel.h>
@@ -41,8 +44,6 @@
41 44
42#include <linux/io.h> 45#include <linux/io.h>
43 46
44#define VERSION "arcnet: COM20020 ISA support (by David Woodhouse et al.)\n"
45
46/* We cannot (yet) probe for an IO mapped card, although we can check that 47/* We cannot (yet) probe for an IO mapped card, although we can check that
47 * it's where we were told it was, and even do autoirq. 48 * it's where we were told it was, and even do autoirq.
48 */ 49 */
@@ -54,7 +55,7 @@ static int __init com20020isa_probe(struct net_device *dev)
54 int err; 55 int err;
55 56
56 if (BUGLVL(D_NORMAL)) 57 if (BUGLVL(D_NORMAL))
57 printk(VERSION); 58 pr_info("%s\n", "COM20020 ISA support (by David Woodhouse et al.)");
58 59
59 ioaddr = dev->base_addr; 60 ioaddr = dev->base_addr;
60 if (!ioaddr) { 61 if (!ioaddr) {
@@ -193,7 +194,7 @@ static int __init com20020isa_setup(char *s)
193 194
194 switch (ints[0]) { 195 switch (ints[0]) {
195 default: /* ERROR */ 196 default: /* ERROR */
196 printk("com90xx: Too many arguments.\n"); 197 pr_info("Too many arguments\n");
197 case 6: /* Timeout */ 198 case 6: /* Timeout */
198 timeout = ints[6]; 199 timeout = ints[6];
199 case 5: /* CKP value */ 200 case 5: /* CKP value */
diff --git a/drivers/net/arcnet/com20020-pci.c b/drivers/net/arcnet/com20020-pci.c
index 0d0cc6a9c618..7247addf46de 100644
--- a/drivers/net/arcnet/com20020-pci.c
+++ b/drivers/net/arcnet/com20020-pci.c
@@ -26,6 +26,9 @@
26 * 26 *
27 * ********************** 27 * **********************
28 */ 28 */
29
30#define pr_fmt(fmt) "arcnet:" KBUILD_MODNAME ": " fmt
31
29#include <linux/module.h> 32#include <linux/module.h>
30#include <linux/moduleparam.h> 33#include <linux/moduleparam.h>
31#include <linux/kernel.h> 34#include <linux/kernel.h>
@@ -42,8 +45,6 @@
42 45
43#include <linux/io.h> 46#include <linux/io.h>
44 47
45#define VERSION "arcnet: COM20020 PCI support\n"
46
47/* Module parameters */ 48/* Module parameters */
48 49
49static int node; 50static int node;
@@ -105,7 +106,7 @@ static int com20020pci_probe(struct pci_dev *pdev, const struct pci_device_id *i
105 r = devm_request_region(&pdev->dev, ioaddr, cm->size, 106 r = devm_request_region(&pdev->dev, ioaddr, cm->size,
106 "com20020-pci"); 107 "com20020-pci");
107 if (!r) { 108 if (!r) {
108 pr_err("IO region %xh-%xh already allocated.\n", 109 pr_err("IO region %xh-%xh already allocated\n",
109 ioaddr, ioaddr + cm->size - 1); 110 ioaddr, ioaddr + cm->size - 1);
110 ret = -EBUSY; 111 ret = -EBUSY;
111 goto out_port; 112 goto out_port;
@@ -403,7 +404,7 @@ static struct pci_driver com20020pci_driver = {
403static int __init com20020pci_init(void) 404static int __init com20020pci_init(void)
404{ 405{
405 if (BUGLVL(D_NORMAL)) 406 if (BUGLVL(D_NORMAL))
406 printk(VERSION); 407 pr_info("%s\n", "COM20020 PCI support");
407 return pci_register_driver(&com20020pci_driver); 408 return pci_register_driver(&com20020pci_driver);
408} 409}
409 410
diff --git a/drivers/net/arcnet/com20020.c b/drivers/net/arcnet/com20020.c
index b0b8a0be08e5..e813fc619ac9 100644
--- a/drivers/net/arcnet/com20020.c
+++ b/drivers/net/arcnet/com20020.c
@@ -25,6 +25,9 @@
25 * 25 *
26 * ********************** 26 * **********************
27 */ 27 */
28
29#define pr_fmt(fmt) "arcnet:" KBUILD_MODNAME ": " fmt
30
28#include <linux/module.h> 31#include <linux/module.h>
29#include <linux/kernel.h> 32#include <linux/kernel.h>
30#include <linux/types.h> 33#include <linux/types.h>
@@ -39,8 +42,6 @@
39 42
40#include <linux/io.h> 43#include <linux/io.h>
41 44
42#define VERSION "arcnet: COM20020 chipset support (by David Woodhouse et al.)\n"
43
44static char *clockrates[] = { 45static char *clockrates[] = {
45 "XXXXXXX", "XXXXXXXX", "XXXXXX", 46 "XXXXXXX", "XXXXXXXX", "XXXXXX",
46 "2.5 Mb/s", "1.25Mb/s", "625 Kb/s", "312.5 Kb/s", 47 "2.5 Mb/s", "1.25Mb/s", "625 Kb/s", "312.5 Kb/s",
@@ -368,7 +369,7 @@ MODULE_LICENSE("GPL");
368static int __init com20020_module_init(void) 369static int __init com20020_module_init(void)
369{ 370{
370 if (BUGLVL(D_NORMAL)) 371 if (BUGLVL(D_NORMAL))
371 printk(VERSION); 372 pr_info("%s\n", "COM20020 chipset support (by David Woodhouse et al.)\n");
372 return 0; 373 return 0;
373} 374}
374 375
diff --git a/drivers/net/arcnet/com20020_cs.c b/drivers/net/arcnet/com20020_cs.c
index 13fe53864383..854169489b68 100644
--- a/drivers/net/arcnet/com20020_cs.c
+++ b/drivers/net/arcnet/com20020_cs.c
@@ -31,6 +31,9 @@
31 * 31 *
32 * ********************** 32 * **********************
33 */ 33 */
34
35#define pr_fmt(fmt) "arcnet:" KBUILD_MODNAME ": " fmt
36
34#include <linux/kernel.h> 37#include <linux/kernel.h>
35#include <linux/ptrace.h> 38#include <linux/ptrace.h>
36#include <linux/slab.h> 39#include <linux/slab.h>
@@ -47,8 +50,6 @@
47 50
48#include <linux/io.h> 51#include <linux/io.h>
49 52
50#define VERSION "arcnet: COM20020 PCMCIA support loaded.\n"
51
52static void regdump(struct net_device *dev) 53static void regdump(struct net_device *dev)
53{ 54{
54#ifdef DEBUG 55#ifdef DEBUG
diff --git a/drivers/net/arcnet/com90io.c b/drivers/net/arcnet/com90io.c
index ec2db8527862..32abaa8d0dc4 100644
--- a/drivers/net/arcnet/com90io.c
+++ b/drivers/net/arcnet/com90io.c
@@ -25,6 +25,9 @@
25 * 25 *
26 * ********************** 26 * **********************
27 */ 27 */
28
29#define pr_fmt(fmt) "arcnet:" KBUILD_MODNAME ": " fmt
30
28#include <linux/kernel.h> 31#include <linux/kernel.h>
29#include <linux/module.h> 32#include <linux/module.h>
30#include <linux/moduleparam.h> 33#include <linux/moduleparam.h>
@@ -37,8 +40,6 @@
37#include <linux/io.h> 40#include <linux/io.h>
38#include <linux/arcdevice.h> 41#include <linux/arcdevice.h>
39 42
40#define VERSION "arcnet: COM90xx IO-mapped mode support (by David Woodhouse et el.)\n"
41
42/* Internal function declarations */ 43/* Internal function declarations */
43 44
44static int com90io_found(struct net_device *dev); 45static int com90io_found(struct net_device *dev);
@@ -146,8 +147,8 @@ static int __init com90io_probe(struct net_device *dev)
146 unsigned long airqmask; 147 unsigned long airqmask;
147 148
148 if (BUGLVL(D_NORMAL)) { 149 if (BUGLVL(D_NORMAL)) {
149 printk(VERSION); 150 pr_info("%s\n", "COM90xx IO-mapped mode support (by David Woodhouse et el.)");
150 printk("E-mail me if you actually test this driver, please!\n"); 151 pr_info("E-mail me if you actually test this driver, please!\n");
151 } 152 }
152 153
153 if (!ioaddr) { 154 if (!ioaddr) {
@@ -369,7 +370,7 @@ static int __init com90io_setup(char *s)
369 return 0; 370 return 0;
370 switch (ints[0]) { 371 switch (ints[0]) {
371 default: /* ERROR */ 372 default: /* ERROR */
372 printk("com90io: Too many arguments.\n"); 373 pr_err("Too many arguments\n");
373 case 2: /* IRQ */ 374 case 2: /* IRQ */
374 irq = ints[2]; 375 irq = ints[2];
375 case 1: /* IO address */ 376 case 1: /* IO address */
diff --git a/drivers/net/arcnet/com90xx.c b/drivers/net/arcnet/com90xx.c
index 12534a3cb4ce..50c346b5d907 100644
--- a/drivers/net/arcnet/com90xx.c
+++ b/drivers/net/arcnet/com90xx.c
@@ -24,6 +24,9 @@
24 * 24 *
25 * ********************** 25 * **********************
26 */ 26 */
27
28#define pr_fmt(fmt) "arcnet:" KBUILD_MODNAME ": " fmt
29
27#include <linux/module.h> 30#include <linux/module.h>
28#include <linux/moduleparam.h> 31#include <linux/moduleparam.h>
29#include <linux/init.h> 32#include <linux/init.h>
@@ -35,8 +38,6 @@
35#include <linux/io.h> 38#include <linux/io.h>
36#include <linux/arcdevice.h> 39#include <linux/arcdevice.h>
37 40
38#define VERSION "arcnet: COM90xx chipset support\n"
39
40/* Define this to speed up the autoprobe by assuming if only one io port and 41/* Define this to speed up the autoprobe by assuming if only one io port and
41 * shmem are left in the list at Stage 5, they must correspond to each 42 * shmem are left in the list at Stage 5, they must correspond to each
42 * other. 43 * other.
@@ -134,7 +135,7 @@ static void __init com90xx_probe(void)
134 } 135 }
135 136
136 if (BUGLVL(D_NORMAL)) 137 if (BUGLVL(D_NORMAL))
137 printk(VERSION); 138 pr_info("%s\n", "COM90xx chipset support");
138 139
139 /* set up the arrays where we'll store the possible probe addresses */ 140 /* set up the arrays where we'll store the possible probe addresses */
140 numports = numshmems = 0; 141 numports = numshmems = 0;
@@ -418,9 +419,9 @@ static void __init com90xx_probe(void)
418 419
419 if (openparen) { 420 if (openparen) {
420 if (BUGLVL(D_INIT)) 421 if (BUGLVL(D_INIT))
421 printk("no matching shmem)\n"); 422 pr_cont("no matching shmem)\n");
422 if (BUGLVL(D_INIT_REASONS)) { 423 if (BUGLVL(D_INIT_REASONS)) {
423 printk("S5: "); 424 pr_cont("S5: ");
424 numprint = 0; 425 numprint = 0;
425 } 426 }
426 } 427 }
@@ -430,7 +431,7 @@ static void __init com90xx_probe(void)
430 } 431 }
431 432
432 if (BUGLVL(D_INIT_REASONS)) 433 if (BUGLVL(D_INIT_REASONS))
433 printk("\n"); 434 pr_cont("\n");
434 435
435 /* Now put back TESTvalue on all leftover shmems. */ 436 /* Now put back TESTvalue on all leftover shmems. */
436 for (index = 0; index < numshmems; index++) { 437 for (index = 0; index < numshmems; index++) {
@@ -685,13 +686,13 @@ static int __init com90xx_setup(char *s)
685 686
686 s = get_options(s, 8, ints); 687 s = get_options(s, 8, ints);
687 if (!ints[0] && !*s) { 688 if (!ints[0] && !*s) {
688 printk("com90xx: Disabled.\n"); 689 pr_notice("Disabled\n");
689 return 1; 690 return 1;
690 } 691 }
691 692
692 switch (ints[0]) { 693 switch (ints[0]) {
693 default: /* ERROR */ 694 default: /* ERROR */
694 printk("com90xx: Too many arguments.\n"); 695 pr_err("Too many arguments\n");
695 case 3: /* Mem address */ 696 case 3: /* Mem address */
696 shmem = ints[3]; 697 shmem = ints[3];
697 case 2: /* IRQ */ 698 case 2: /* IRQ */
diff --git a/drivers/net/arcnet/rfc1051.c b/drivers/net/arcnet/rfc1051.c
index 47c7d1a4ef4c..d5a0f907ac82 100644
--- a/drivers/net/arcnet/rfc1051.c
+++ b/drivers/net/arcnet/rfc1051.c
@@ -23,6 +23,9 @@
23 * 23 *
24 * ********************** 24 * **********************
25 */ 25 */
26
27#define pr_fmt(fmt) "arcnet:" KBUILD_MODNAME ": " fmt
28
26#include <linux/module.h> 29#include <linux/module.h>
27#include <linux/gfp.h> 30#include <linux/gfp.h>
28#include <linux/init.h> 31#include <linux/init.h>
@@ -32,8 +35,6 @@
32#include <linux/skbuff.h> 35#include <linux/skbuff.h>
33#include <linux/arcdevice.h> 36#include <linux/arcdevice.h>
34 37
35#define VERSION "arcnet: RFC1051 \"simple standard\" (`s') encapsulation support loaded.\n"
36
37static __be16 type_trans(struct sk_buff *skb, struct net_device *dev); 38static __be16 type_trans(struct sk_buff *skb, struct net_device *dev);
38static void rx(struct net_device *dev, int bufnum, 39static void rx(struct net_device *dev, int bufnum,
39 struct archdr *pkthdr, int length); 40 struct archdr *pkthdr, int length);
@@ -55,7 +56,7 @@ static struct ArcProto rfc1051_proto = {
55 56
56static int __init arcnet_rfc1051_init(void) 57static int __init arcnet_rfc1051_init(void)
57{ 58{
58 printk(VERSION); 59 pr_info("%s\n", "RFC1051 \"simple standard\" (`s') encapsulation support loaded");
59 60
60 arc_proto_map[ARC_P_IP_RFC1051] 61 arc_proto_map[ARC_P_IP_RFC1051]
61 = arc_proto_map[ARC_P_ARP_RFC1051] 62 = arc_proto_map[ARC_P_ARP_RFC1051]
diff --git a/drivers/net/arcnet/rfc1201.c b/drivers/net/arcnet/rfc1201.c
index 97af7d92c020..3dae14166120 100644
--- a/drivers/net/arcnet/rfc1201.c
+++ b/drivers/net/arcnet/rfc1201.c
@@ -23,6 +23,9 @@
23 * 23 *
24 * ********************** 24 * **********************
25 */ 25 */
26
27#define pr_fmt(fmt) "arcnet:" KBUILD_MODNAME ": " fmt
28
26#include <linux/gfp.h> 29#include <linux/gfp.h>
27#include <linux/module.h> 30#include <linux/module.h>
28#include <linux/init.h> 31#include <linux/init.h>
@@ -32,7 +35,6 @@
32#include <linux/arcdevice.h> 35#include <linux/arcdevice.h>
33 36
34MODULE_LICENSE("GPL"); 37MODULE_LICENSE("GPL");
35#define VERSION "arcnet: RFC1201 \"standard\" (`a') encapsulation support loaded.\n"
36 38
37static __be16 type_trans(struct sk_buff *skb, struct net_device *dev); 39static __be16 type_trans(struct sk_buff *skb, struct net_device *dev);
38static void rx(struct net_device *dev, int bufnum, 40static void rx(struct net_device *dev, int bufnum,
@@ -56,7 +58,7 @@ static struct ArcProto rfc1201_proto = {
56 58
57static int __init arcnet_rfc1201_init(void) 59static int __init arcnet_rfc1201_init(void)
58{ 60{
59 printk(VERSION); 61 pr_info("%s\n", "RFC1201 \"standard\" (`a') encapsulation support loaded");
60 62
61 arc_proto_map[ARC_P_IP] 63 arc_proto_map[ARC_P_IP]
62 = arc_proto_map[ARC_P_IPV6] 64 = arc_proto_map[ARC_P_IPV6]