diff options
author | Alexander Beregalov <a.beregalov@gmail.com> | 2009-05-26 08:35:25 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-05-26 23:35:02 -0400 |
commit | 646cdb32831eebe8c2f742c293d0d266326854d9 (patch) | |
tree | 43b2460ea3704f2b6e1ff0c53cc592ecaa4d3747 /drivers/net/3c503.c | |
parent | d3f65f7c3cf11b036bbc01f22ac5c958570e724c (diff) |
3c50x: convert printk() to pr_<foo>()
Signed-off-by: Alexander Beregalov <a.beregalov@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/3c503.c')
-rw-r--r-- | drivers/net/3c503.c | 36 |
1 files changed, 19 insertions, 17 deletions
diff --git a/drivers/net/3c503.c b/drivers/net/3c503.c index 4f08bd995836..134638a9759f 100644 --- a/drivers/net/3c503.c +++ b/drivers/net/3c503.c | |||
@@ -234,16 +234,16 @@ el2_probe1(struct net_device *dev, int ioaddr) | |||
234 | } | 234 | } |
235 | 235 | ||
236 | if (ei_debug && version_printed++ == 0) | 236 | if (ei_debug && version_printed++ == 0) |
237 | printk(version); | 237 | pr_debug("%s", version); |
238 | 238 | ||
239 | dev->base_addr = ioaddr; | 239 | dev->base_addr = ioaddr; |
240 | 240 | ||
241 | printk("%s: 3c503 at i/o base %#3x, node ", dev->name, ioaddr); | 241 | pr_info("%s: 3c503 at i/o base %#3x, node ", dev->name, ioaddr); |
242 | 242 | ||
243 | /* Retrieve and print the ethernet address. */ | 243 | /* Retrieve and print the ethernet address. */ |
244 | for (i = 0; i < 6; i++) | 244 | for (i = 0; i < 6; i++) |
245 | dev->dev_addr[i] = inb(ioaddr + i); | 245 | dev->dev_addr[i] = inb(ioaddr + i); |
246 | printk("%pM", dev->dev_addr); | 246 | pr_cont("%pM", dev->dev_addr); |
247 | 247 | ||
248 | /* Map the 8390 back into the window. */ | 248 | /* Map the 8390 back into the window. */ |
249 | outb(ECNTRL_THIN, ioaddr + 0x406); | 249 | outb(ECNTRL_THIN, ioaddr + 0x406); |
@@ -256,7 +256,8 @@ el2_probe1(struct net_device *dev, int ioaddr) | |||
256 | outb_p(E8390_PAGE0, ioaddr + E8390_CMD); | 256 | outb_p(E8390_PAGE0, ioaddr + E8390_CMD); |
257 | 257 | ||
258 | /* Probe for, turn on and clear the board's shared memory. */ | 258 | /* Probe for, turn on and clear the board's shared memory. */ |
259 | if (ei_debug > 2) printk(" memory jumpers %2.2x ", membase_reg); | 259 | if (ei_debug > 2) |
260 | pr_cont(" memory jumpers %2.2x ", membase_reg); | ||
260 | outb(EGACFR_NORM, ioaddr + 0x405); /* Enable RAM */ | 261 | outb(EGACFR_NORM, ioaddr + 0x405); /* Enable RAM */ |
261 | 262 | ||
262 | /* This should be probed for (or set via an ioctl()) at run-time. | 263 | /* This should be probed for (or set via an ioctl()) at run-time. |
@@ -268,7 +269,7 @@ el2_probe1(struct net_device *dev, int ioaddr) | |||
268 | #else | 269 | #else |
269 | ei_status.interface_num = dev->mem_end & 0xf; | 270 | ei_status.interface_num = dev->mem_end & 0xf; |
270 | #endif | 271 | #endif |
271 | printk(", using %sternal xcvr.\n", ei_status.interface_num == 0 ? "in" : "ex"); | 272 | pr_cont(", using %sternal xcvr.\n", ei_status.interface_num == 0 ? "in" : "ex"); |
272 | 273 | ||
273 | if ((membase_reg & 0xf0) == 0) { | 274 | if ((membase_reg & 0xf0) == 0) { |
274 | dev->mem_start = 0; | 275 | dev->mem_start = 0; |
@@ -292,7 +293,7 @@ el2_probe1(struct net_device *dev, int ioaddr) | |||
292 | writel(test_val, mem_base + i); | 293 | writel(test_val, mem_base + i); |
293 | if (readl(mem_base) != 0xba5eba5e | 294 | if (readl(mem_base) != 0xba5eba5e |
294 | || readl(mem_base + i) != test_val) { | 295 | || readl(mem_base + i) != test_val) { |
295 | printk("3c503: memory failure or memory address conflict.\n"); | 296 | pr_warning("3c503: memory failure or memory address conflict.\n"); |
296 | dev->mem_start = 0; | 297 | dev->mem_start = 0; |
297 | ei_status.name = "3c503-PIO"; | 298 | ei_status.name = "3c503-PIO"; |
298 | iounmap(mem_base); | 299 | iounmap(mem_base); |
@@ -344,7 +345,7 @@ el2_probe1(struct net_device *dev, int ioaddr) | |||
344 | if (dev->irq == 2) | 345 | if (dev->irq == 2) |
345 | dev->irq = 9; | 346 | dev->irq = 9; |
346 | else if (dev->irq > 5 && dev->irq != 9) { | 347 | else if (dev->irq > 5 && dev->irq != 9) { |
347 | printk("3c503: configured interrupt %d invalid, will use autoIRQ.\n", | 348 | pr_warning("3c503: configured interrupt %d invalid, will use autoIRQ.\n", |
348 | dev->irq); | 349 | dev->irq); |
349 | dev->irq = 0; | 350 | dev->irq = 0; |
350 | } | 351 | } |
@@ -359,7 +360,7 @@ el2_probe1(struct net_device *dev, int ioaddr) | |||
359 | goto out1; | 360 | goto out1; |
360 | 361 | ||
361 | if (dev->mem_start) | 362 | if (dev->mem_start) |
362 | printk("%s: %s - %dkB RAM, 8kB shared mem window at %#6lx-%#6lx.\n", | 363 | pr_info("%s: %s - %dkB RAM, 8kB shared mem window at %#6lx-%#6lx.\n", |
363 | dev->name, ei_status.name, (wordlength+1)<<3, | 364 | dev->name, ei_status.name, (wordlength+1)<<3, |
364 | dev->mem_start, dev->mem_end-1); | 365 | dev->mem_start, dev->mem_end-1); |
365 | 366 | ||
@@ -367,7 +368,7 @@ el2_probe1(struct net_device *dev, int ioaddr) | |||
367 | { | 368 | { |
368 | ei_status.tx_start_page = EL2_MB1_START_PG; | 369 | ei_status.tx_start_page = EL2_MB1_START_PG; |
369 | ei_status.rx_start_page = EL2_MB1_START_PG + TX_PAGES; | 370 | ei_status.rx_start_page = EL2_MB1_START_PG + TX_PAGES; |
370 | printk("\n%s: %s, %dkB RAM, using programmed I/O (REJUMPER for SHARED MEMORY).\n", | 371 | pr_info("%s: %s, %dkB RAM, using programmed I/O (REJUMPER for SHARED MEMORY).\n", |
371 | dev->name, ei_status.name, (wordlength+1)<<3); | 372 | dev->name, ei_status.name, (wordlength+1)<<3); |
372 | } | 373 | } |
373 | release_region(ioaddr + 0x400, 8); | 374 | release_region(ioaddr + 0x400, 8); |
@@ -435,15 +436,16 @@ static void | |||
435 | el2_reset_8390(struct net_device *dev) | 436 | el2_reset_8390(struct net_device *dev) |
436 | { | 437 | { |
437 | if (ei_debug > 1) { | 438 | if (ei_debug > 1) { |
438 | printk("%s: Resetting the 3c503 board...", dev->name); | 439 | pr_debug("%s: Resetting the 3c503 board...", dev->name); |
439 | printk("%#lx=%#02x %#lx=%#02x %#lx=%#02x...", E33G_IDCFR, inb(E33G_IDCFR), | 440 | pr_cont(" %#lx=%#02x %#lx=%#02x %#lx=%#02x...", E33G_IDCFR, inb(E33G_IDCFR), |
440 | E33G_CNTRL, inb(E33G_CNTRL), E33G_GACFR, inb(E33G_GACFR)); | 441 | E33G_CNTRL, inb(E33G_CNTRL), E33G_GACFR, inb(E33G_GACFR)); |
441 | } | 442 | } |
442 | outb_p(ECNTRL_RESET|ECNTRL_THIN, E33G_CNTRL); | 443 | outb_p(ECNTRL_RESET|ECNTRL_THIN, E33G_CNTRL); |
443 | ei_status.txing = 0; | 444 | ei_status.txing = 0; |
444 | outb_p(ei_status.interface_num==0 ? ECNTRL_THIN : ECNTRL_AUI, E33G_CNTRL); | 445 | outb_p(ei_status.interface_num==0 ? ECNTRL_THIN : ECNTRL_AUI, E33G_CNTRL); |
445 | el2_init_card(dev); | 446 | el2_init_card(dev); |
446 | if (ei_debug > 1) printk("done\n"); | 447 | if (ei_debug > 1) |
448 | pr_cont("done\n"); | ||
447 | } | 449 | } |
448 | 450 | ||
449 | /* Initialize the 3c503 GA registers after a reset. */ | 451 | /* Initialize the 3c503 GA registers after a reset. */ |
@@ -529,7 +531,7 @@ el2_block_output(struct net_device *dev, int count, | |||
529 | { | 531 | { |
530 | if(!boguscount--) | 532 | if(!boguscount--) |
531 | { | 533 | { |
532 | printk("%s: FIFO blocked in el2_block_output.\n", dev->name); | 534 | pr_notice("%s: FIFO blocked in el2_block_output.\n", dev->name); |
533 | el2_reset_8390(dev); | 535 | el2_reset_8390(dev); |
534 | goto blocked; | 536 | goto blocked; |
535 | } | 537 | } |
@@ -581,7 +583,7 @@ el2_get_8390_hdr(struct net_device *dev, struct e8390_pkt_hdr *hdr, int ring_pag | |||
581 | { | 583 | { |
582 | if(!boguscount--) | 584 | if(!boguscount--) |
583 | { | 585 | { |
584 | printk("%s: FIFO blocked in el2_get_8390_hdr.\n", dev->name); | 586 | pr_notice("%s: FIFO blocked in el2_get_8390_hdr.\n", dev->name); |
585 | memset(hdr, 0x00, sizeof(struct e8390_pkt_hdr)); | 587 | memset(hdr, 0x00, sizeof(struct e8390_pkt_hdr)); |
586 | el2_reset_8390(dev); | 588 | el2_reset_8390(dev); |
587 | goto blocked; | 589 | goto blocked; |
@@ -645,7 +647,7 @@ el2_block_input(struct net_device *dev, int count, struct sk_buff *skb, int ring | |||
645 | { | 647 | { |
646 | if(!boguscount--) | 648 | if(!boguscount--) |
647 | { | 649 | { |
648 | printk("%s: FIFO blocked in el2_block_input.\n", dev->name); | 650 | pr_notice("%s: FIFO blocked in el2_block_input.\n", dev->name); |
649 | el2_reset_8390(dev); | 651 | el2_reset_8390(dev); |
650 | goto blocked; | 652 | goto blocked; |
651 | } | 653 | } |
@@ -707,7 +709,7 @@ init_module(void) | |||
707 | for (this_dev = 0; this_dev < MAX_EL2_CARDS; this_dev++) { | 709 | for (this_dev = 0; this_dev < MAX_EL2_CARDS; this_dev++) { |
708 | if (io[this_dev] == 0) { | 710 | if (io[this_dev] == 0) { |
709 | if (this_dev != 0) break; /* only autoprobe 1st one */ | 711 | if (this_dev != 0) break; /* only autoprobe 1st one */ |
710 | printk(KERN_NOTICE "3c503.c: Presently autoprobing (not recommended) for a single card.\n"); | 712 | pr_notice("3c503.c: Presently autoprobing (not recommended) for a single card.\n"); |
711 | } | 713 | } |
712 | dev = alloc_eip_netdev(); | 714 | dev = alloc_eip_netdev(); |
713 | if (!dev) | 715 | if (!dev) |
@@ -720,7 +722,7 @@ init_module(void) | |||
720 | continue; | 722 | continue; |
721 | } | 723 | } |
722 | free_netdev(dev); | 724 | free_netdev(dev); |
723 | printk(KERN_WARNING "3c503.c: No 3c503 card found (i/o = 0x%x).\n", io[this_dev]); | 725 | pr_warning("3c503.c: No 3c503 card found (i/o = 0x%x).\n", io[this_dev]); |
724 | break; | 726 | break; |
725 | } | 727 | } |
726 | if (found) | 728 | if (found) |