aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/tokenring
diff options
context:
space:
mode:
authorFrans Pop <elendil@planet.nl>2010-03-24 03:57:33 -0400
committerDavid S. Miller <davem@davemloft.net>2010-03-24 17:10:07 -0400
commit014e46686eff2159bac0887465fed7662c379ad3 (patch)
tree14034000d602920a382f7efd4d8300a8c58c2c1c /drivers/net/tokenring
parent84d57bd61866c06aee5658fabe43292a231a5992 (diff)
net/tokenring: remove trailing space in messages
Trailing spaces in files in /proc for lanstreamer.c and olympic.c have been left as they are. Signed-off-by: Frans Pop <elendil@planet.nl> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/tokenring')
-rw-r--r--drivers/net/tokenring/3c359.c100
-rw-r--r--drivers/net/tokenring/lanstreamer.c46
-rw-r--r--drivers/net/tokenring/olympic.c62
-rw-r--r--drivers/net/tokenring/tms380tr.c4
4 files changed, 106 insertions, 106 deletions
diff --git a/drivers/net/tokenring/3c359.c b/drivers/net/tokenring/3c359.c
index 0fb930feea45..8c54d89e60d7 100644
--- a/drivers/net/tokenring/3c359.c
+++ b/drivers/net/tokenring/3c359.c
@@ -76,7 +76,7 @@ static char version[] __devinitdata =
76 76
77#define FW_NAME "3com/3C359.bin" 77#define FW_NAME "3com/3C359.bin"
78MODULE_AUTHOR("Mike Phillips <mikep@linuxtr.net>") ; 78MODULE_AUTHOR("Mike Phillips <mikep@linuxtr.net>") ;
79MODULE_DESCRIPTION("3Com 3C359 Velocity XL Token Ring Adapter Driver \n") ; 79MODULE_DESCRIPTION("3Com 3C359 Velocity XL Token Ring Adapter Driver\n") ;
80MODULE_FIRMWARE(FW_NAME); 80MODULE_FIRMWARE(FW_NAME);
81 81
82/* Module parameters */ 82/* Module parameters */
@@ -162,19 +162,19 @@ static void print_tx_state(struct net_device *dev)
162 u8 __iomem *xl_mmio = xl_priv->xl_mmio ; 162 u8 __iomem *xl_mmio = xl_priv->xl_mmio ;
163 int i ; 163 int i ;
164 164
165 printk("tx_ring_head: %d, tx_ring_tail: %d, free_ent: %d \n",xl_priv->tx_ring_head, 165 printk("tx_ring_head: %d, tx_ring_tail: %d, free_ent: %d\n",xl_priv->tx_ring_head,
166 xl_priv->tx_ring_tail, xl_priv->free_ring_entries) ; 166 xl_priv->tx_ring_tail, xl_priv->free_ring_entries) ;
167 printk("Ring , Address , FSH , DnNextPtr, Buffer, Buffer_Len \n"); 167 printk("Ring , Address , FSH , DnNextPtr, Buffer, Buffer_Len\n");
168 for (i = 0; i < 16; i++) { 168 for (i = 0; i < 16; i++) {
169 txd = &(xl_priv->xl_tx_ring[i]) ; 169 txd = &(xl_priv->xl_tx_ring[i]) ;
170 printk("%d, %08lx, %08x, %08x, %08x, %08x \n", i, virt_to_bus(txd), 170 printk("%d, %08lx, %08x, %08x, %08x, %08x\n", i, virt_to_bus(txd),
171 txd->framestartheader, txd->dnnextptr, txd->buffer, txd->buffer_length ) ; 171 txd->framestartheader, txd->dnnextptr, txd->buffer, txd->buffer_length ) ;
172 } 172 }
173 173
174 printk("DNLISTPTR = %04x \n", readl(xl_mmio + MMIO_DNLISTPTR) ); 174 printk("DNLISTPTR = %04x\n", readl(xl_mmio + MMIO_DNLISTPTR) );
175 175
176 printk("DmaCtl = %04x \n", readl(xl_mmio + MMIO_DMA_CTRL) ); 176 printk("DmaCtl = %04x\n", readl(xl_mmio + MMIO_DMA_CTRL) );
177 printk("Queue status = %0x \n",netif_running(dev) ) ; 177 printk("Queue status = %0x\n",netif_running(dev) ) ;
178} 178}
179 179
180static void print_rx_state(struct net_device *dev) 180static void print_rx_state(struct net_device *dev)
@@ -185,19 +185,19 @@ static void print_rx_state(struct net_device *dev)
185 u8 __iomem *xl_mmio = xl_priv->xl_mmio ; 185 u8 __iomem *xl_mmio = xl_priv->xl_mmio ;
186 int i ; 186 int i ;
187 187
188 printk("rx_ring_tail: %d \n", xl_priv->rx_ring_tail) ; 188 printk("rx_ring_tail: %d\n", xl_priv->rx_ring_tail);
189 printk("Ring , Address , FrameState , UPNextPtr, FragAddr, Frag_Len \n"); 189 printk("Ring , Address , FrameState , UPNextPtr, FragAddr, Frag_Len\n");
190 for (i = 0; i < 16; i++) { 190 for (i = 0; i < 16; i++) {
191 /* rxd = (struct xl_rx_desc *)xl_priv->rx_ring_dma_addr + (i * sizeof(struct xl_rx_desc)) ; */ 191 /* rxd = (struct xl_rx_desc *)xl_priv->rx_ring_dma_addr + (i * sizeof(struct xl_rx_desc)) ; */
192 rxd = &(xl_priv->xl_rx_ring[i]) ; 192 rxd = &(xl_priv->xl_rx_ring[i]) ;
193 printk("%d, %08lx, %08x, %08x, %08x, %08x \n", i, virt_to_bus(rxd), 193 printk("%d, %08lx, %08x, %08x, %08x, %08x\n", i, virt_to_bus(rxd),
194 rxd->framestatus, rxd->upnextptr, rxd->upfragaddr, rxd->upfraglen ) ; 194 rxd->framestatus, rxd->upnextptr, rxd->upfragaddr, rxd->upfraglen ) ;
195 } 195 }
196 196
197 printk("UPLISTPTR = %04x \n", readl(xl_mmio + MMIO_UPLISTPTR) ); 197 printk("UPLISTPTR = %04x\n", readl(xl_mmio + MMIO_UPLISTPTR));
198 198
199 printk("DmaCtl = %04x \n", readl(xl_mmio + MMIO_DMA_CTRL) ); 199 printk("DmaCtl = %04x\n", readl(xl_mmio + MMIO_DMA_CTRL));
200 printk("Queue status = %0x \n",netif_running(dev) ) ; 200 printk("Queue status = %0x\n",netif_running(dev));
201} 201}
202#endif 202#endif
203 203
@@ -390,7 +390,7 @@ static int __devinit xl_init(struct net_device *dev)
390 struct xl_private *xl_priv = netdev_priv(dev); 390 struct xl_private *xl_priv = netdev_priv(dev);
391 int err; 391 int err;
392 392
393 printk(KERN_INFO "%s \n", version); 393 printk(KERN_INFO "%s\n", version);
394 printk(KERN_INFO "%s: I/O at %hx, MMIO at %p, using irq %d\n", 394 printk(KERN_INFO "%s: I/O at %hx, MMIO at %p, using irq %d\n",
395 xl_priv->xl_card_name, (unsigned int)dev->base_addr ,xl_priv->xl_mmio, dev->irq); 395 xl_priv->xl_card_name, (unsigned int)dev->base_addr ,xl_priv->xl_mmio, dev->irq);
396 396
@@ -462,7 +462,7 @@ static int xl_hw_reset(struct net_device *dev)
462 writel( (IO_WORD_READ | PMBAR),xl_mmio + MMIO_MAC_ACCESS_CMD); 462 writel( (IO_WORD_READ | PMBAR),xl_mmio + MMIO_MAC_ACCESS_CMD);
463 463
464#if XL_DEBUG 464#if XL_DEBUG
465 printk(KERN_INFO "Read from PMBAR = %04x \n", readw(xl_mmio + MMIO_MACDATA)) ; 465 printk(KERN_INFO "Read from PMBAR = %04x\n", readw(xl_mmio + MMIO_MACDATA));
466#endif 466#endif
467 467
468 if ( readw( (xl_mmio + MMIO_MACDATA)) & PMB_CPHOLD ) { 468 if ( readw( (xl_mmio + MMIO_MACDATA)) & PMB_CPHOLD ) {
@@ -590,9 +590,9 @@ static int xl_hw_reset(struct net_device *dev)
590#if XL_DEBUG 590#if XL_DEBUG
591 writel(IO_WORD_READ | SWITCHSETTINGS, xl_mmio + MMIO_MAC_ACCESS_CMD) ; 591 writel(IO_WORD_READ | SWITCHSETTINGS, xl_mmio + MMIO_MAC_ACCESS_CMD) ;
592 if ( readw(xl_mmio + MMIO_MACDATA) & 2) { 592 if ( readw(xl_mmio + MMIO_MACDATA) & 2) {
593 printk(KERN_INFO "Default ring speed 4 mbps \n") ; 593 printk(KERN_INFO "Default ring speed 4 mbps\n");
594 } else { 594 } else {
595 printk(KERN_INFO "Default ring speed 16 mbps \n") ; 595 printk(KERN_INFO "Default ring speed 16 mbps\n");
596 } 596 }
597 printk(KERN_INFO "%s: xl_priv->srb = %04x\n",xl_priv->xl_card_name, xl_priv->srb); 597 printk(KERN_INFO "%s: xl_priv->srb = %04x\n",xl_priv->xl_card_name, xl_priv->srb);
598#endif 598#endif
@@ -650,7 +650,7 @@ static int xl_open(struct net_device *dev)
650 650
651 if (open_err != 0) { /* Something went wrong with the open command */ 651 if (open_err != 0) { /* Something went wrong with the open command */
652 if (open_err & 0x07) { /* Wrong speed, retry at different speed */ 652 if (open_err & 0x07) { /* Wrong speed, retry at different speed */
653 printk(KERN_WARNING "%s: Open Error, retrying at different ringspeed \n", dev->name) ; 653 printk(KERN_WARNING "%s: Open Error, retrying at different ringspeed\n", dev->name);
654 switchsettings = switchsettings ^ 2 ; 654 switchsettings = switchsettings ^ 2 ;
655 xl_ee_write(dev,0x08,switchsettings) ; 655 xl_ee_write(dev,0x08,switchsettings) ;
656 xl_hw_reset(dev) ; 656 xl_hw_reset(dev) ;
@@ -702,7 +702,7 @@ static int xl_open(struct net_device *dev)
702 } 702 }
703 703
704 if (i==0) { 704 if (i==0) {
705 printk(KERN_WARNING "%s: Not enough memory to allocate rx buffers. Adapter disabled \n",dev->name) ; 705 printk(KERN_WARNING "%s: Not enough memory to allocate rx buffers. Adapter disabled\n",dev->name);
706 free_irq(dev->irq,dev) ; 706 free_irq(dev->irq,dev) ;
707 kfree(xl_priv->xl_tx_ring); 707 kfree(xl_priv->xl_tx_ring);
708 kfree(xl_priv->xl_rx_ring); 708 kfree(xl_priv->xl_rx_ring);
@@ -852,7 +852,7 @@ static int xl_open_hw(struct net_device *dev)
852 852
853 writel( (MEM_WORD_READ | 0xD0000 | xl_priv->srb) + 12, xl_mmio + MMIO_MAC_ACCESS_CMD) ; 853 writel( (MEM_WORD_READ | 0xD0000 | xl_priv->srb) + 12, xl_mmio + MMIO_MAC_ACCESS_CMD) ;
854 xl_priv->arb = swab16(readw(xl_mmio + MMIO_MACDATA)) ; 854 xl_priv->arb = swab16(readw(xl_mmio + MMIO_MACDATA)) ;
855 printk(", ARB: %04x \n",xl_priv->arb ) ; 855 printk(", ARB: %04x\n",xl_priv->arb );
856 writel( (MEM_WORD_READ | 0xD0000 | xl_priv->srb) + 14, xl_mmio + MMIO_MAC_ACCESS_CMD) ; 856 writel( (MEM_WORD_READ | 0xD0000 | xl_priv->srb) + 14, xl_mmio + MMIO_MAC_ACCESS_CMD) ;
857 vsoff = swab16(readw(xl_mmio + MMIO_MACDATA)) ; 857 vsoff = swab16(readw(xl_mmio + MMIO_MACDATA)) ;
858 858
@@ -866,7 +866,7 @@ static int xl_open_hw(struct net_device *dev)
866 ver_str[i] = readb(xl_mmio + MMIO_MACDATA) ; 866 ver_str[i] = readb(xl_mmio + MMIO_MACDATA) ;
867 } 867 }
868 ver_str[i] = '\0' ; 868 ver_str[i] = '\0' ;
869 printk(KERN_INFO "%s: Microcode version String: %s \n",dev->name,ver_str); 869 printk(KERN_INFO "%s: Microcode version String: %s\n",dev->name,ver_str);
870 } 870 }
871 871
872 /* 872 /*
@@ -990,7 +990,7 @@ static void xl_rx(struct net_device *dev)
990 skb = dev_alloc_skb(xl_priv->pkt_buf_sz) ; 990 skb = dev_alloc_skb(xl_priv->pkt_buf_sz) ;
991 991
992 if (skb==NULL) { /* Still need to fix the rx ring */ 992 if (skb==NULL) { /* Still need to fix the rx ring */
993 printk(KERN_WARNING "%s: dev_alloc_skb failed in rx, single buffer \n",dev->name) ; 993 printk(KERN_WARNING "%s: dev_alloc_skb failed in rx, single buffer\n",dev->name);
994 adv_rx_ring(dev) ; 994 adv_rx_ring(dev) ;
995 dev->stats.rx_dropped++ ; 995 dev->stats.rx_dropped++ ;
996 writel(ACK_INTERRUPT | UPCOMPACK | LATCH_ACK , xl_mmio + MMIO_COMMAND) ; 996 writel(ACK_INTERRUPT | UPCOMPACK | LATCH_ACK , xl_mmio + MMIO_COMMAND) ;
@@ -1091,7 +1091,7 @@ static irqreturn_t xl_interrupt(int irq, void *dev_id)
1091 */ 1091 */
1092 if (intstatus == 0x0001) { 1092 if (intstatus == 0x0001) {
1093 writel(ACK_INTERRUPT | LATCH_ACK, xl_mmio + MMIO_COMMAND) ; 1093 writel(ACK_INTERRUPT | LATCH_ACK, xl_mmio + MMIO_COMMAND) ;
1094 printk(KERN_INFO "%s: 00001 int received \n",dev->name) ; 1094 printk(KERN_INFO "%s: 00001 int received\n",dev->name);
1095 } else { 1095 } else {
1096 if (intstatus & (HOSTERRINT | SRBRINT | ARBCINT | UPCOMPINT | DNCOMPINT | HARDERRINT | (1<<8) | TXUNDERRUN | ASBFINT)) { 1096 if (intstatus & (HOSTERRINT | SRBRINT | ARBCINT | UPCOMPINT | DNCOMPINT | HARDERRINT | (1<<8) | TXUNDERRUN | ASBFINT)) {
1097 1097
@@ -1102,9 +1102,9 @@ static irqreturn_t xl_interrupt(int irq, void *dev_id)
1102 */ 1102 */
1103 1103
1104 if (intstatus & HOSTERRINT) { 1104 if (intstatus & HOSTERRINT) {
1105 printk(KERN_WARNING "%s: Host Error, performing global reset, intstatus = %04x \n",dev->name,intstatus) ; 1105 printk(KERN_WARNING "%s: Host Error, performing global reset, intstatus = %04x\n",dev->name,intstatus);
1106 writew( GLOBAL_RESET, xl_mmio + MMIO_COMMAND ) ; 1106 writew( GLOBAL_RESET, xl_mmio + MMIO_COMMAND ) ;
1107 printk(KERN_WARNING "%s: Resetting hardware: \n", dev->name); 1107 printk(KERN_WARNING "%s: Resetting hardware:\n", dev->name);
1108 netif_stop_queue(dev) ; 1108 netif_stop_queue(dev) ;
1109 xl_freemem(dev) ; 1109 xl_freemem(dev) ;
1110 free_irq(dev->irq,dev); 1110 free_irq(dev->irq,dev);
@@ -1127,7 +1127,7 @@ static irqreturn_t xl_interrupt(int irq, void *dev_id)
1127 Must put a timeout check here ! */ 1127 Must put a timeout check here ! */
1128 /* Empty Loop */ 1128 /* Empty Loop */
1129 } 1129 }
1130 printk(KERN_WARNING "%s: TX Underrun received \n",dev->name) ; 1130 printk(KERN_WARNING "%s: TX Underrun received\n",dev->name);
1131 writel(ACK_INTERRUPT | LATCH_ACK, xl_mmio + MMIO_COMMAND) ; 1131 writel(ACK_INTERRUPT | LATCH_ACK, xl_mmio + MMIO_COMMAND) ;
1132 } /* TxUnderRun */ 1132 } /* TxUnderRun */
1133 1133
@@ -1156,13 +1156,13 @@ static irqreturn_t xl_interrupt(int irq, void *dev_id)
1156 macstatus = readw(xl_mmio + MMIO_MACDATA) ; 1156 macstatus = readw(xl_mmio + MMIO_MACDATA) ;
1157 printk(KERN_WARNING "%s: MacStatusError, details: ", dev->name); 1157 printk(KERN_WARNING "%s: MacStatusError, details: ", dev->name);
1158 if (macstatus & (1<<14)) 1158 if (macstatus & (1<<14))
1159 printk(KERN_WARNING "tchk error: Unrecoverable error \n") ; 1159 printk(KERN_WARNING "tchk error: Unrecoverable error\n");
1160 if (macstatus & (1<<3)) 1160 if (macstatus & (1<<3))
1161 printk(KERN_WARNING "eint error: Internal watchdog timer expired \n") ; 1161 printk(KERN_WARNING "eint error: Internal watchdog timer expired\n");
1162 if (macstatus & (1<<2)) 1162 if (macstatus & (1<<2))
1163 printk(KERN_WARNING "aint error: Host tried to perform invalid operation \n") ; 1163 printk(KERN_WARNING "aint error: Host tried to perform invalid operation\n");
1164 printk(KERN_WARNING "Instatus = %02x, macstatus = %02x\n",intstatus,macstatus) ; 1164 printk(KERN_WARNING "Instatus = %02x, macstatus = %02x\n",intstatus,macstatus) ;
1165 printk(KERN_WARNING "%s: Resetting hardware: \n", dev->name); 1165 printk(KERN_WARNING "%s: Resetting hardware:\n", dev->name);
1166 netif_stop_queue(dev) ; 1166 netif_stop_queue(dev) ;
1167 xl_freemem(dev) ; 1167 xl_freemem(dev) ;
1168 free_irq(dev->irq,dev); 1168 free_irq(dev->irq,dev);
@@ -1174,7 +1174,7 @@ static irqreturn_t xl_interrupt(int irq, void *dev_id)
1174 return IRQ_HANDLED; 1174 return IRQ_HANDLED;
1175 } 1175 }
1176 } else { 1176 } else {
1177 printk(KERN_WARNING "%s: Received Unknown interrupt : %04x \n", dev->name, intstatus) ; 1177 printk(KERN_WARNING "%s: Received Unknown interrupt : %04x\n", dev->name, intstatus);
1178 writel(ACK_INTERRUPT | LATCH_ACK, xl_mmio + MMIO_COMMAND) ; 1178 writel(ACK_INTERRUPT | LATCH_ACK, xl_mmio + MMIO_COMMAND) ;
1179 } 1179 }
1180 } 1180 }
@@ -1349,11 +1349,11 @@ static int xl_close(struct net_device *dev)
1349 1349
1350 writel(MEM_BYTE_READ | 0xd0000 | xl_priv->srb, xl_mmio + MMIO_MAC_ACCESS_CMD); 1350 writel(MEM_BYTE_READ | 0xd0000 | xl_priv->srb, xl_mmio + MMIO_MAC_ACCESS_CMD);
1351 if (readb(xl_mmio + MMIO_MACDATA) != CLOSE_NIC) { 1351 if (readb(xl_mmio + MMIO_MACDATA) != CLOSE_NIC) {
1352 printk(KERN_INFO "%s: CLOSE_NIC did not get a CLOSE_NIC response \n",dev->name) ; 1352 printk(KERN_INFO "%s: CLOSE_NIC did not get a CLOSE_NIC response\n",dev->name);
1353 } else { 1353 } else {
1354 writel((MEM_BYTE_READ | 0xd0000 | xl_priv->srb) +2, xl_mmio + MMIO_MAC_ACCESS_CMD) ; 1354 writel((MEM_BYTE_READ | 0xd0000 | xl_priv->srb) +2, xl_mmio + MMIO_MAC_ACCESS_CMD) ;
1355 if (readb(xl_mmio + MMIO_MACDATA)==0) { 1355 if (readb(xl_mmio + MMIO_MACDATA)==0) {
1356 printk(KERN_INFO "%s: Adapter has been closed \n",dev->name) ; 1356 printk(KERN_INFO "%s: Adapter has been closed\n",dev->name);
1357 writew(ACK_INTERRUPT | SRBRACK | LATCH_ACK, xl_mmio + MMIO_COMMAND) ; 1357 writew(ACK_INTERRUPT | SRBRACK | LATCH_ACK, xl_mmio + MMIO_COMMAND) ;
1358 1358
1359 xl_freemem(dev) ; 1359 xl_freemem(dev) ;
@@ -1446,11 +1446,11 @@ static void xl_srb_bh(struct net_device *dev)
1446 printk(KERN_INFO "%s: Command: %d - Invalid Command code\n",dev->name,srb_cmd) ; 1446 printk(KERN_INFO "%s: Command: %d - Invalid Command code\n",dev->name,srb_cmd) ;
1447 break ; 1447 break ;
1448 case 4: 1448 case 4:
1449 printk(KERN_INFO "%s: Command: %d - Adapter is closed, must be open for this command \n",dev->name,srb_cmd) ; 1449 printk(KERN_INFO "%s: Command: %d - Adapter is closed, must be open for this command\n",dev->name,srb_cmd);
1450 break ; 1450 break ;
1451 1451
1452 case 6: 1452 case 6:
1453 printk(KERN_INFO "%s: Command: %d - Options Invalid for command \n",dev->name,srb_cmd) ; 1453 printk(KERN_INFO "%s: Command: %d - Options Invalid for command\n",dev->name,srb_cmd);
1454 break ; 1454 break ;
1455 1455
1456 case 0: /* Successful command execution */ 1456 case 0: /* Successful command execution */
@@ -1471,11 +1471,11 @@ static void xl_srb_bh(struct net_device *dev)
1471 break ; 1471 break ;
1472 case SET_FUNC_ADDRESS: 1472 case SET_FUNC_ADDRESS:
1473 if(xl_priv->xl_message_level) 1473 if(xl_priv->xl_message_level)
1474 printk(KERN_INFO "%s: Functional Address Set \n",dev->name) ; 1474 printk(KERN_INFO "%s: Functional Address Set\n",dev->name);
1475 break ; 1475 break ;
1476 case CLOSE_NIC: 1476 case CLOSE_NIC:
1477 if(xl_priv->xl_message_level) 1477 if(xl_priv->xl_message_level)
1478 printk(KERN_INFO "%s: Received CLOSE_NIC interrupt in interrupt handler \n",dev->name) ; 1478 printk(KERN_INFO "%s: Received CLOSE_NIC interrupt in interrupt handler\n",dev->name);
1479 break ; 1479 break ;
1480 case SET_MULTICAST_MODE: 1480 case SET_MULTICAST_MODE:
1481 if(xl_priv->xl_message_level) 1481 if(xl_priv->xl_message_level)
@@ -1484,9 +1484,9 @@ static void xl_srb_bh(struct net_device *dev)
1484 case SET_RECEIVE_MODE: 1484 case SET_RECEIVE_MODE:
1485 if(xl_priv->xl_message_level) { 1485 if(xl_priv->xl_message_level) {
1486 if (xl_priv->xl_copy_all_options == 0x0004) 1486 if (xl_priv->xl_copy_all_options == 0x0004)
1487 printk(KERN_INFO "%s: Entering promiscuous mode \n", dev->name) ; 1487 printk(KERN_INFO "%s: Entering promiscuous mode\n", dev->name);
1488 else 1488 else
1489 printk(KERN_INFO "%s: Entering normal receive mode \n",dev->name) ; 1489 printk(KERN_INFO "%s: Entering normal receive mode\n",dev->name);
1490 } 1490 }
1491 break ; 1491 break ;
1492 1492
@@ -1556,20 +1556,20 @@ static void xl_arb_cmd(struct net_device *dev)
1556 xl_freemem(dev) ; 1556 xl_freemem(dev) ;
1557 free_irq(dev->irq,dev); 1557 free_irq(dev->irq,dev);
1558 1558
1559 printk(KERN_WARNING "%s: Adapter has been closed \n", dev->name) ; 1559 printk(KERN_WARNING "%s: Adapter has been closed\n", dev->name);
1560 } /* If serious error */ 1560 } /* If serious error */
1561 1561
1562 if (xl_priv->xl_message_level) { 1562 if (xl_priv->xl_message_level) {
1563 if (lan_status_diff & LSC_SIG_LOSS) 1563 if (lan_status_diff & LSC_SIG_LOSS)
1564 printk(KERN_WARNING "%s: No receive signal detected \n", dev->name) ; 1564 printk(KERN_WARNING "%s: No receive signal detected\n", dev->name);
1565 if (lan_status_diff & LSC_HARD_ERR) 1565 if (lan_status_diff & LSC_HARD_ERR)
1566 printk(KERN_INFO "%s: Beaconing \n",dev->name); 1566 printk(KERN_INFO "%s: Beaconing\n",dev->name);
1567 if (lan_status_diff & LSC_SOFT_ERR) 1567 if (lan_status_diff & LSC_SOFT_ERR)
1568 printk(KERN_WARNING "%s: Adapter transmitted Soft Error Report Mac Frame \n",dev->name); 1568 printk(KERN_WARNING "%s: Adapter transmitted Soft Error Report Mac Frame\n",dev->name);
1569 if (lan_status_diff & LSC_TRAN_BCN) 1569 if (lan_status_diff & LSC_TRAN_BCN)
1570 printk(KERN_INFO "%s: We are tranmitting the beacon, aaah\n",dev->name); 1570 printk(KERN_INFO "%s: We are tranmitting the beacon, aaah\n",dev->name);
1571 if (lan_status_diff & LSC_SS) 1571 if (lan_status_diff & LSC_SS)
1572 printk(KERN_INFO "%s: Single Station on the ring \n", dev->name); 1572 printk(KERN_INFO "%s: Single Station on the ring\n", dev->name);
1573 if (lan_status_diff & LSC_RING_REC) 1573 if (lan_status_diff & LSC_RING_REC)
1574 printk(KERN_INFO "%s: Ring recovery ongoing\n",dev->name); 1574 printk(KERN_INFO "%s: Ring recovery ongoing\n",dev->name);
1575 if (lan_status_diff & LSC_FDX_MODE) 1575 if (lan_status_diff & LSC_FDX_MODE)
@@ -1578,7 +1578,7 @@ static void xl_arb_cmd(struct net_device *dev)
1578 1578
1579 if (lan_status_diff & LSC_CO) { 1579 if (lan_status_diff & LSC_CO) {
1580 if (xl_priv->xl_message_level) 1580 if (xl_priv->xl_message_level)
1581 printk(KERN_INFO "%s: Counter Overflow \n", dev->name); 1581 printk(KERN_INFO "%s: Counter Overflow\n", dev->name);
1582 /* Issue READ.LOG command */ 1582 /* Issue READ.LOG command */
1583 xl_srb_cmd(dev, READ_LOG) ; 1583 xl_srb_cmd(dev, READ_LOG) ;
1584 } 1584 }
@@ -1594,7 +1594,7 @@ static void xl_arb_cmd(struct net_device *dev)
1594 } /* Lan.change.status */ 1594 } /* Lan.change.status */
1595 else if ( arb_cmd == RECEIVE_DATA) { /* Received.Data */ 1595 else if ( arb_cmd == RECEIVE_DATA) { /* Received.Data */
1596#if XL_DEBUG 1596#if XL_DEBUG
1597 printk(KERN_INFO "Received.Data \n") ; 1597 printk(KERN_INFO "Received.Data\n");
1598#endif 1598#endif
1599 writel( ((MEM_WORD_READ | 0xD0000 | xl_priv->arb) + 6), xl_mmio + MMIO_MAC_ACCESS_CMD) ; 1599 writel( ((MEM_WORD_READ | 0xD0000 | xl_priv->arb) + 6), xl_mmio + MMIO_MAC_ACCESS_CMD) ;
1600 xl_priv->mac_buffer = swab16(readw(xl_mmio + MMIO_MACDATA)) ; 1600 xl_priv->mac_buffer = swab16(readw(xl_mmio + MMIO_MACDATA)) ;
@@ -1629,7 +1629,7 @@ static void xl_arb_cmd(struct net_device *dev)
1629 xl_asb_cmd(dev) ; 1629 xl_asb_cmd(dev) ;
1630 1630
1631 } else { 1631 } else {
1632 printk(KERN_WARNING "%s: Received unknown arb (xl_priv) command: %02x \n",dev->name,arb_cmd) ; 1632 printk(KERN_WARNING "%s: Received unknown arb (xl_priv) command: %02x\n",dev->name,arb_cmd);
1633 } 1633 }
1634 1634
1635 /* Acknowledge the arb interrupt */ 1635 /* Acknowledge the arb interrupt */
@@ -1686,13 +1686,13 @@ static void xl_asb_bh(struct net_device *dev)
1686 ret_code = readb(xl_mmio + MMIO_MACDATA) ; 1686 ret_code = readb(xl_mmio + MMIO_MACDATA) ;
1687 switch (ret_code) { 1687 switch (ret_code) {
1688 case 0x01: 1688 case 0x01:
1689 printk(KERN_INFO "%s: ASB Command, unrecognized command code \n",dev->name) ; 1689 printk(KERN_INFO "%s: ASB Command, unrecognized command code\n",dev->name);
1690 break ; 1690 break ;
1691 case 0x26: 1691 case 0x26:
1692 printk(KERN_INFO "%s: ASB Command, unexpected receive buffer \n", dev->name) ; 1692 printk(KERN_INFO "%s: ASB Command, unexpected receive buffer\n", dev->name);
1693 break ; 1693 break ;
1694 case 0x40: 1694 case 0x40:
1695 printk(KERN_INFO "%s: ASB Command, Invalid Station ID \n", dev->name) ; 1695 printk(KERN_INFO "%s: ASB Command, Invalid Station ID\n", dev->name);
1696 break ; 1696 break ;
1697 } 1697 }
1698 xl_priv->asb_queued = 0 ; 1698 xl_priv->asb_queued = 0 ;
diff --git a/drivers/net/tokenring/lanstreamer.c b/drivers/net/tokenring/lanstreamer.c
index dd028fee9dc2..01c780f25e98 100644
--- a/drivers/net/tokenring/lanstreamer.c
+++ b/drivers/net/tokenring/lanstreamer.c
@@ -357,7 +357,7 @@ static int __devinit streamer_init_one(struct pci_dev *pdev,
357 pcr |= PCI_COMMAND_SERR; 357 pcr |= PCI_COMMAND_SERR;
358 pci_write_config_word (pdev, PCI_COMMAND, pcr); 358 pci_write_config_word (pdev, PCI_COMMAND, pcr);
359 359
360 printk("%s \n", version); 360 printk("%s\n", version);
361 printk("%s: %s. I/O at %hx, MMIO at %p, using irq %d\n",dev->name, 361 printk("%s: %s. I/O at %hx, MMIO at %p, using irq %d\n",dev->name,
362 streamer_priv->streamer_card_name, 362 streamer_priv->streamer_card_name,
363 (unsigned int) dev->base_addr, 363 (unsigned int) dev->base_addr,
@@ -650,7 +650,7 @@ static int streamer_open(struct net_device *dev)
650#if STREAMER_DEBUG 650#if STREAMER_DEBUG
651 writew(readw(streamer_mmio + LAPWWO), 651 writew(readw(streamer_mmio + LAPWWO),
652 streamer_mmio + LAPA); 652 streamer_mmio + LAPA);
653 printk("srb open request: \n"); 653 printk("srb open request:\n");
654 for (i = 0; i < 16; i++) { 654 for (i = 0; i < 16; i++) {
655 printk("%x:", ntohs(readw(streamer_mmio + LAPDINC))); 655 printk("%x:", ntohs(readw(streamer_mmio + LAPDINC)));
656 } 656 }
@@ -700,7 +700,7 @@ static int streamer_open(struct net_device *dev)
700 if (srb_word != 0) { 700 if (srb_word != 0) {
701 if (srb_word == 0x07) { 701 if (srb_word == 0x07) {
702 if (!streamer_priv->streamer_ring_speed && open_finished) { /* Autosense , first time around */ 702 if (!streamer_priv->streamer_ring_speed && open_finished) { /* Autosense , first time around */
703 printk(KERN_WARNING "%s: Retrying at different ring speed \n", 703 printk(KERN_WARNING "%s: Retrying at different ring speed\n",
704 dev->name); 704 dev->name);
705 open_finished = 0; 705 open_finished = 0;
706 } else { 706 } else {
@@ -716,7 +716,7 @@ static int streamer_open(struct net_device *dev)
716 ((error_code & 0x0f) == 0x0d)) 716 ((error_code & 0x0f) == 0x0d))
717 { 717 {
718 printk(KERN_WARNING "%s: Tried to autosense ring speed with no monitors present\n", dev->name); 718 printk(KERN_WARNING "%s: Tried to autosense ring speed with no monitors present\n", dev->name);
719 printk(KERN_WARNING "%s: Please try again with a specified ring speed \n", dev->name); 719 printk(KERN_WARNING "%s: Please try again with a specified ring speed\n", dev->name);
720 free_irq(dev->irq, dev); 720 free_irq(dev->irq, dev);
721 return -EIO; 721 return -EIO;
722 } 722 }
@@ -922,7 +922,7 @@ static void streamer_rx(struct net_device *dev)
922 922
923 if (rx_desc->status & 0x7E830000) { /* errors */ 923 if (rx_desc->status & 0x7E830000) { /* errors */
924 if (streamer_priv->streamer_message_level) { 924 if (streamer_priv->streamer_message_level) {
925 printk(KERN_WARNING "%s: Rx Error %x \n", 925 printk(KERN_WARNING "%s: Rx Error %x\n",
926 dev->name, rx_desc->status); 926 dev->name, rx_desc->status);
927 } 927 }
928 } else { /* received without errors */ 928 } else { /* received without errors */
@@ -935,7 +935,7 @@ static void streamer_rx(struct net_device *dev)
935 935
936 if (skb == NULL) 936 if (skb == NULL)
937 { 937 {
938 printk(KERN_WARNING "%s: Not enough memory to copy packet to upper layers. \n", dev->name); 938 printk(KERN_WARNING "%s: Not enough memory to copy packet to upper layers.\n", dev->name);
939 dev->stats.rx_dropped++; 939 dev->stats.rx_dropped++;
940 } else { /* we allocated an skb OK */ 940 } else { /* we allocated an skb OK */
941 if (buffer_cnt == 1) { 941 if (buffer_cnt == 1) {
@@ -1363,7 +1363,7 @@ static void streamer_srb_bh(struct net_device *dev)
1363 case 0x00: 1363 case 0x00:
1364 break; 1364 break;
1365 case 0x01: 1365 case 0x01:
1366 printk(KERN_WARNING "%s: Unrecognized srb command \n",dev->name); 1366 printk(KERN_WARNING "%s: Unrecognized srb command\n",dev->name);
1367 break; 1367 break;
1368 case 0x04: 1368 case 0x04:
1369 printk(KERN_WARNING "%s: Adapter must be open for this operation, doh!!\n", dev->name); 1369 printk(KERN_WARNING "%s: Adapter must be open for this operation, doh!!\n", dev->name);
@@ -1391,13 +1391,13 @@ static void streamer_srb_bh(struct net_device *dev)
1391 case 0x00: 1391 case 0x00:
1392 break; 1392 break;
1393 case 0x01: 1393 case 0x01:
1394 printk(KERN_WARNING "%s: Unrecognized srb command \n", dev->name); 1394 printk(KERN_WARNING "%s: Unrecognized srb command\n", dev->name);
1395 break; 1395 break;
1396 case 0x04: 1396 case 0x04:
1397 printk(KERN_WARNING "%s: Adapter must be open for this operation, doh!!\n", dev->name); 1397 printk(KERN_WARNING "%s: Adapter must be open for this operation, doh!!\n", dev->name);
1398 break; 1398 break;
1399 case 0x39: /* Must deal with this if individual multicast addresses used */ 1399 case 0x39: /* Must deal with this if individual multicast addresses used */
1400 printk(KERN_INFO "%s: Group address not found \n", dev->name); 1400 printk(KERN_INFO "%s: Group address not found\n", dev->name);
1401 break; 1401 break;
1402 default: 1402 default:
1403 break; 1403 break;
@@ -1413,10 +1413,10 @@ static void streamer_srb_bh(struct net_device *dev)
1413 switch (srb_word) { 1413 switch (srb_word) {
1414 case 0x00: 1414 case 0x00:
1415 if (streamer_priv->streamer_message_level) 1415 if (streamer_priv->streamer_message_level)
1416 printk(KERN_INFO "%s: Functional Address Mask Set \n", dev->name); 1416 printk(KERN_INFO "%s: Functional Address Mask Set\n", dev->name);
1417 break; 1417 break;
1418 case 0x01: 1418 case 0x01:
1419 printk(KERN_WARNING "%s: Unrecognized srb command \n", dev->name); 1419 printk(KERN_WARNING "%s: Unrecognized srb command\n", dev->name);
1420 break; 1420 break;
1421 case 0x04: 1421 case 0x04:
1422 printk(KERN_WARNING "%s: Adapter must be open for this operation, doh!!\n", dev->name); 1422 printk(KERN_WARNING "%s: Adapter must be open for this operation, doh!!\n", dev->name);
@@ -1447,7 +1447,7 @@ static void streamer_srb_bh(struct net_device *dev)
1447 } 1447 }
1448 break; 1448 break;
1449 case 0x01: 1449 case 0x01:
1450 printk(KERN_WARNING "%s: Unrecognized srb command \n", dev->name); 1450 printk(KERN_WARNING "%s: Unrecognized srb command\n", dev->name);
1451 break; 1451 break;
1452 case 0x04: 1452 case 0x04:
1453 printk(KERN_WARNING "%s: Adapter must be open for this operation, doh!!\n", dev->name); 1453 printk(KERN_WARNING "%s: Adapter must be open for this operation, doh!!\n", dev->name);
@@ -1466,7 +1466,7 @@ static void streamer_srb_bh(struct net_device *dev)
1466 printk(KERN_INFO "%s: Read Source Routing Counters issued\n", dev->name); 1466 printk(KERN_INFO "%s: Read Source Routing Counters issued\n", dev->name);
1467 break; 1467 break;
1468 case 0x01: 1468 case 0x01:
1469 printk(KERN_WARNING "%s: Unrecognized srb command \n", dev->name); 1469 printk(KERN_WARNING "%s: Unrecognized srb command\n", dev->name);
1470 break; 1470 break;
1471 case 0x04: 1471 case 0x04:
1472 printk(KERN_WARNING "%s: Adapter must be open for this operation, doh!!\n", dev->name); 1472 printk(KERN_WARNING "%s: Adapter must be open for this operation, doh!!\n", dev->name);
@@ -1555,7 +1555,7 @@ static void streamer_arb_cmd(struct net_device *dev)
1555 (streamer_mmio + LAPDINC))); 1555 (streamer_mmio + LAPDINC)));
1556 } 1556 }
1557 1557
1558 printk("next %04x, fs %02x, len %04x \n", next, 1558 printk("next %04x, fs %02x, len %04x\n", next,
1559 status, len); 1559 status, len);
1560 } 1560 }
1561#endif 1561#endif
@@ -1592,7 +1592,7 @@ static void streamer_arb_cmd(struct net_device *dev)
1592 1592
1593 mac_frame->protocol = tr_type_trans(mac_frame, dev); 1593 mac_frame->protocol = tr_type_trans(mac_frame, dev);
1594#if STREAMER_NETWORK_MONITOR 1594#if STREAMER_NETWORK_MONITOR
1595 printk(KERN_WARNING "%s: Received MAC Frame, details: \n", 1595 printk(KERN_WARNING "%s: Received MAC Frame, details:\n",
1596 dev->name); 1596 dev->name);
1597 mac_hdr = tr_hdr(mac_frame); 1597 mac_hdr = tr_hdr(mac_frame);
1598 printk(KERN_WARNING 1598 printk(KERN_WARNING
@@ -1668,15 +1668,15 @@ drop_frame:
1668 /* If serious error */ 1668 /* If serious error */
1669 if (streamer_priv->streamer_message_level) { 1669 if (streamer_priv->streamer_message_level) {
1670 if (lan_status_diff & LSC_SIG_LOSS) 1670 if (lan_status_diff & LSC_SIG_LOSS)
1671 printk(KERN_WARNING "%s: No receive signal detected \n", dev->name); 1671 printk(KERN_WARNING "%s: No receive signal detected\n", dev->name);
1672 if (lan_status_diff & LSC_HARD_ERR) 1672 if (lan_status_diff & LSC_HARD_ERR)
1673 printk(KERN_INFO "%s: Beaconing \n", dev->name); 1673 printk(KERN_INFO "%s: Beaconing\n", dev->name);
1674 if (lan_status_diff & LSC_SOFT_ERR) 1674 if (lan_status_diff & LSC_SOFT_ERR)
1675 printk(KERN_WARNING "%s: Adapter transmitted Soft Error Report Mac Frame \n", dev->name); 1675 printk(KERN_WARNING "%s: Adapter transmitted Soft Error Report Mac Frame\n", dev->name);
1676 if (lan_status_diff & LSC_TRAN_BCN) 1676 if (lan_status_diff & LSC_TRAN_BCN)
1677 printk(KERN_INFO "%s: We are tranmitting the beacon, aaah\n", dev->name); 1677 printk(KERN_INFO "%s: We are tranmitting the beacon, aaah\n", dev->name);
1678 if (lan_status_diff & LSC_SS) 1678 if (lan_status_diff & LSC_SS)
1679 printk(KERN_INFO "%s: Single Station on the ring \n", dev->name); 1679 printk(KERN_INFO "%s: Single Station on the ring\n", dev->name);
1680 if (lan_status_diff & LSC_RING_REC) 1680 if (lan_status_diff & LSC_RING_REC)
1681 printk(KERN_INFO "%s: Ring recovery ongoing\n", dev->name); 1681 printk(KERN_INFO "%s: Ring recovery ongoing\n", dev->name);
1682 if (lan_status_diff & LSC_FDX_MODE) 1682 if (lan_status_diff & LSC_FDX_MODE)
@@ -1685,7 +1685,7 @@ drop_frame:
1685 1685
1686 if (lan_status_diff & LSC_CO) { 1686 if (lan_status_diff & LSC_CO) {
1687 if (streamer_priv->streamer_message_level) 1687 if (streamer_priv->streamer_message_level)
1688 printk(KERN_INFO "%s: Counter Overflow \n", dev->name); 1688 printk(KERN_INFO "%s: Counter Overflow\n", dev->name);
1689 1689
1690 /* Issue READ.LOG command */ 1690 /* Issue READ.LOG command */
1691 1691
@@ -1715,7 +1715,7 @@ drop_frame:
1715 streamer_priv->streamer_lan_status = lan_status; 1715 streamer_priv->streamer_lan_status = lan_status;
1716 } /* Lan.change.status */ 1716 } /* Lan.change.status */
1717 else 1717 else
1718 printk(KERN_WARNING "%s: Unknown arb command \n", dev->name); 1718 printk(KERN_WARNING "%s: Unknown arb command\n", dev->name);
1719} 1719}
1720 1720
1721static void streamer_asb_bh(struct net_device *dev) 1721static void streamer_asb_bh(struct net_device *dev)
@@ -1746,10 +1746,10 @@ static void streamer_asb_bh(struct net_device *dev)
1746 rc=ntohs(readw(streamer_mmio+LAPD)) >> 8; 1746 rc=ntohs(readw(streamer_mmio+LAPD)) >> 8;
1747 switch (rc) { 1747 switch (rc) {
1748 case 0x01: 1748 case 0x01:
1749 printk(KERN_WARNING "%s: Unrecognized command code \n", dev->name); 1749 printk(KERN_WARNING "%s: Unrecognized command code\n", dev->name);
1750 break; 1750 break;
1751 case 0x26: 1751 case 0x26:
1752 printk(KERN_WARNING "%s: Unrecognized buffer address \n", dev->name); 1752 printk(KERN_WARNING "%s: Unrecognized buffer address\n", dev->name);
1753 break; 1753 break;
1754 case 0xFF: 1754 case 0xFF:
1755 /* Valid response, everything should be ok again */ 1755 /* Valid response, everything should be ok again */
diff --git a/drivers/net/tokenring/olympic.c b/drivers/net/tokenring/olympic.c
index 3a25e0434ae2..3decaf4b6cf2 100644
--- a/drivers/net/tokenring/olympic.c
+++ b/drivers/net/tokenring/olympic.c
@@ -302,7 +302,7 @@ static int olympic_init(struct net_device *dev)
302 olympic_priv=netdev_priv(dev); 302 olympic_priv=netdev_priv(dev);
303 olympic_mmio=olympic_priv->olympic_mmio; 303 olympic_mmio=olympic_priv->olympic_mmio;
304 304
305 printk("%s \n", version); 305 printk("%s\n", version);
306 printk("%s. I/O at %hx, MMIO at %p, LAP at %p, using irq %d\n", olympic_priv->olympic_card_name, (unsigned int) dev->base_addr,olympic_priv->olympic_mmio, olympic_priv->olympic_lap, dev->irq); 306 printk("%s. I/O at %hx, MMIO at %p, LAP at %p, using irq %d\n", olympic_priv->olympic_card_name, (unsigned int) dev->base_addr,olympic_priv->olympic_mmio, olympic_priv->olympic_lap, dev->irq);
307 307
308 writel(readl(olympic_mmio+BCTL) | BCTL_SOFTRESET,olympic_mmio+BCTL); 308 writel(readl(olympic_mmio+BCTL) | BCTL_SOFTRESET,olympic_mmio+BCTL);
@@ -468,7 +468,7 @@ static int olympic_open(struct net_device *dev)
468#if OLYMPIC_DEBUG 468#if OLYMPIC_DEBUG
469 printk("LAPWWO: %x, LAPA: %x\n",readw(olympic_mmio+LAPWWO), readl(olympic_mmio+LAPA)); 469 printk("LAPWWO: %x, LAPA: %x\n",readw(olympic_mmio+LAPWWO), readl(olympic_mmio+LAPA));
470 printk("SISR Mask = %04x\n", readl(olympic_mmio+SISR_MASK)); 470 printk("SISR Mask = %04x\n", readl(olympic_mmio+SISR_MASK));
471 printk("Before the open command \n"); 471 printk("Before the open command\n");
472#endif 472#endif
473 do { 473 do {
474 memset_io(init_srb,0,SRB_COMMAND_SIZE); 474 memset_io(init_srb,0,SRB_COMMAND_SIZE);
@@ -520,7 +520,7 @@ static int olympic_open(struct net_device *dev)
520 break; 520 break;
521 } 521 }
522 if (time_after(jiffies, t + 10*HZ)) { 522 if (time_after(jiffies, t + 10*HZ)) {
523 printk(KERN_WARNING "%s: SRB timed out. \n",dev->name) ; 523 printk(KERN_WARNING "%s: SRB timed out.\n",dev->name);
524 olympic_priv->srb_queued=0; 524 olympic_priv->srb_queued=0;
525 break ; 525 break ;
526 } 526 }
@@ -549,7 +549,7 @@ static int olympic_open(struct net_device *dev)
549 break; 549 break;
550 case 0x07: 550 case 0x07:
551 if (!olympic_priv->olympic_ring_speed && open_finished) { /* Autosense , first time around */ 551 if (!olympic_priv->olympic_ring_speed && open_finished) { /* Autosense , first time around */
552 printk(KERN_WARNING "%s: Retrying at different ring speed \n", dev->name); 552 printk(KERN_WARNING "%s: Retrying at different ring speed\n", dev->name);
553 open_finished = 0 ; 553 open_finished = 0 ;
554 continue; 554 continue;
555 } 555 }
@@ -558,7 +558,7 @@ static int olympic_open(struct net_device *dev)
558 558
559 if (!olympic_priv->olympic_ring_speed && ((err & 0x0f) == 0x0d)) { 559 if (!olympic_priv->olympic_ring_speed && ((err & 0x0f) == 0x0d)) {
560 printk(KERN_WARNING "%s: Tried to autosense ring speed with no monitors present\n",dev->name); 560 printk(KERN_WARNING "%s: Tried to autosense ring speed with no monitors present\n",dev->name);
561 printk(KERN_WARNING "%s: Please try again with a specified ring speed \n",dev->name); 561 printk(KERN_WARNING "%s: Please try again with a specified ring speed\n",dev->name);
562 } else { 562 } else {
563 printk(KERN_WARNING "%s: %s - %s\n", dev->name, 563 printk(KERN_WARNING "%s: %s - %s\n", dev->name,
564 open_maj_error[(err & 0xf0) >> 4], 564 open_maj_error[(err & 0xf0) >> 4],
@@ -759,7 +759,7 @@ static void olympic_rx(struct net_device *dev)
759 olympic_priv->rx_status_last_received++ ; 759 olympic_priv->rx_status_last_received++ ;
760 olympic_priv->rx_status_last_received &= (OLYMPIC_RX_RING_SIZE -1); 760 olympic_priv->rx_status_last_received &= (OLYMPIC_RX_RING_SIZE -1);
761#if OLYMPIC_DEBUG 761#if OLYMPIC_DEBUG
762 printk("rx status: %x rx len: %x \n", le32_to_cpu(rx_status->status_buffercnt), le32_to_cpu(rx_status->fragmentcnt_framelen)); 762 printk("rx status: %x rx len: %x\n", le32_to_cpu(rx_status->status_buffercnt), le32_to_cpu(rx_status->fragmentcnt_framelen));
763#endif 763#endif
764 length = le32_to_cpu(rx_status->fragmentcnt_framelen) & 0xffff; 764 length = le32_to_cpu(rx_status->fragmentcnt_framelen) & 0xffff;
765 buffer_cnt = le32_to_cpu(rx_status->status_buffercnt) & 0xffff; 765 buffer_cnt = le32_to_cpu(rx_status->status_buffercnt) & 0xffff;
@@ -774,15 +774,15 @@ static void olympic_rx(struct net_device *dev)
774 if (l_status_buffercnt & 0x3B000000) { 774 if (l_status_buffercnt & 0x3B000000) {
775 if (olympic_priv->olympic_message_level) { 775 if (olympic_priv->olympic_message_level) {
776 if (l_status_buffercnt & (1<<29)) /* Rx Frame Truncated */ 776 if (l_status_buffercnt & (1<<29)) /* Rx Frame Truncated */
777 printk(KERN_WARNING "%s: Rx Frame Truncated \n",dev->name); 777 printk(KERN_WARNING "%s: Rx Frame Truncated\n",dev->name);
778 if (l_status_buffercnt & (1<<28)) /*Rx receive overrun */ 778 if (l_status_buffercnt & (1<<28)) /*Rx receive overrun */
779 printk(KERN_WARNING "%s: Rx Frame Receive overrun \n",dev->name); 779 printk(KERN_WARNING "%s: Rx Frame Receive overrun\n",dev->name);
780 if (l_status_buffercnt & (1<<27)) /* No receive buffers */ 780 if (l_status_buffercnt & (1<<27)) /* No receive buffers */
781 printk(KERN_WARNING "%s: No receive buffers \n",dev->name); 781 printk(KERN_WARNING "%s: No receive buffers\n",dev->name);
782 if (l_status_buffercnt & (1<<25)) /* Receive frame error detect */ 782 if (l_status_buffercnt & (1<<25)) /* Receive frame error detect */
783 printk(KERN_WARNING "%s: Receive frame error detect \n",dev->name); 783 printk(KERN_WARNING "%s: Receive frame error detect\n",dev->name);
784 if (l_status_buffercnt & (1<<24)) /* Received Error Detect */ 784 if (l_status_buffercnt & (1<<24)) /* Received Error Detect */
785 printk(KERN_WARNING "%s: Received Error Detect \n",dev->name); 785 printk(KERN_WARNING "%s: Received Error Detect\n",dev->name);
786 } 786 }
787 olympic_priv->rx_ring_last_received += i ; 787 olympic_priv->rx_ring_last_received += i ;
788 olympic_priv->rx_ring_last_received &= (OLYMPIC_RX_RING_SIZE -1) ; 788 olympic_priv->rx_ring_last_received &= (OLYMPIC_RX_RING_SIZE -1) ;
@@ -796,7 +796,7 @@ static void olympic_rx(struct net_device *dev)
796 } 796 }
797 797
798 if (skb == NULL) { 798 if (skb == NULL) {
799 printk(KERN_WARNING "%s: Not enough memory to copy packet to upper layers. \n",dev->name) ; 799 printk(KERN_WARNING "%s: Not enough memory to copy packet to upper layers.\n",dev->name) ;
800 dev->stats.rx_dropped++; 800 dev->stats.rx_dropped++;
801 /* Update counters even though we don't transfer the frame */ 801 /* Update counters even though we don't transfer the frame */
802 olympic_priv->rx_ring_last_received += i ; 802 olympic_priv->rx_ring_last_received += i ;
@@ -1101,7 +1101,7 @@ static int olympic_close(struct net_device *dev)
1101 } 1101 }
1102 1102
1103 if (t == 0) { 1103 if (t == 0) {
1104 printk(KERN_WARNING "%s: SRB timed out. May not be fatal. \n",dev->name) ; 1104 printk(KERN_WARNING "%s: SRB timed out. May not be fatal.\n",dev->name);
1105 } 1105 }
1106 olympic_priv->srb_queued=0; 1106 olympic_priv->srb_queued=0;
1107 } 1107 }
@@ -1239,7 +1239,7 @@ static void olympic_srb_bh(struct net_device *dev)
1239 case 0x00: 1239 case 0x00:
1240 break ; 1240 break ;
1241 case 0x01: 1241 case 0x01:
1242 printk(KERN_WARNING "%s: Unrecognized srb command \n",dev->name) ; 1242 printk(KERN_WARNING "%s: Unrecognized srb command\n",dev->name);
1243 break ; 1243 break ;
1244 case 0x04: 1244 case 0x04:
1245 printk(KERN_WARNING "%s: Adapter must be open for this operation, doh!!\n",dev->name); 1245 printk(KERN_WARNING "%s: Adapter must be open for this operation, doh!!\n",dev->name);
@@ -1266,13 +1266,13 @@ static void olympic_srb_bh(struct net_device *dev)
1266 case 0x00: 1266 case 0x00:
1267 break ; 1267 break ;
1268 case 0x01: 1268 case 0x01:
1269 printk(KERN_WARNING "%s: Unrecognized srb command \n",dev->name) ; 1269 printk(KERN_WARNING "%s: Unrecognized srb command\n",dev->name);
1270 break ; 1270 break ;
1271 case 0x04: 1271 case 0x04:
1272 printk(KERN_WARNING "%s: Adapter must be open for this operation, doh!!\n",dev->name) ; 1272 printk(KERN_WARNING "%s: Adapter must be open for this operation, doh!!\n",dev->name) ;
1273 break ; 1273 break ;
1274 case 0x39: /* Must deal with this if individual multicast addresses used */ 1274 case 0x39: /* Must deal with this if individual multicast addresses used */
1275 printk(KERN_INFO "%s: Group address not found \n",dev->name); 1275 printk(KERN_INFO "%s: Group address not found\n",dev->name);
1276 break ; 1276 break ;
1277 default: 1277 default:
1278 break ; 1278 break ;
@@ -1287,10 +1287,10 @@ static void olympic_srb_bh(struct net_device *dev)
1287 switch (readb(srb+2)) { 1287 switch (readb(srb+2)) {
1288 case 0x00: 1288 case 0x00:
1289 if (olympic_priv->olympic_message_level) 1289 if (olympic_priv->olympic_message_level)
1290 printk(KERN_INFO "%s: Functional Address Mask Set \n",dev->name) ; 1290 printk(KERN_INFO "%s: Functional Address Mask Set\n",dev->name);
1291 break ; 1291 break ;
1292 case 0x01: 1292 case 0x01:
1293 printk(KERN_WARNING "%s: Unrecognized srb command \n",dev->name) ; 1293 printk(KERN_WARNING "%s: Unrecognized srb command\n",dev->name);
1294 break ; 1294 break ;
1295 case 0x04: 1295 case 0x04:
1296 printk(KERN_WARNING "%s: Adapter must be open for this operation, doh!!\n",dev->name) ; 1296 printk(KERN_WARNING "%s: Adapter must be open for this operation, doh!!\n",dev->name) ;
@@ -1310,7 +1310,7 @@ static void olympic_srb_bh(struct net_device *dev)
1310 printk(KERN_INFO "%s: Read Log issued\n",dev->name) ; 1310 printk(KERN_INFO "%s: Read Log issued\n",dev->name) ;
1311 break ; 1311 break ;
1312 case 0x01: 1312 case 0x01:
1313 printk(KERN_WARNING "%s: Unrecognized srb command \n",dev->name) ; 1313 printk(KERN_WARNING "%s: Unrecognized srb command\n",dev->name);
1314 break ; 1314 break ;
1315 case 0x04: 1315 case 0x04:
1316 printk(KERN_WARNING "%s: Adapter must be open for this operation, doh!!\n",dev->name) ; 1316 printk(KERN_WARNING "%s: Adapter must be open for this operation, doh!!\n",dev->name) ;
@@ -1328,7 +1328,7 @@ static void olympic_srb_bh(struct net_device *dev)
1328 printk(KERN_INFO "%s: Read Source Routing Counters issued\n",dev->name) ; 1328 printk(KERN_INFO "%s: Read Source Routing Counters issued\n",dev->name) ;
1329 break ; 1329 break ;
1330 case 0x01: 1330 case 0x01:
1331 printk(KERN_WARNING "%s: Unrecognized srb command \n",dev->name) ; 1331 printk(KERN_WARNING "%s: Unrecognized srb command\n",dev->name);
1332 break ; 1332 break ;
1333 case 0x04: 1333 case 0x04:
1334 printk(KERN_WARNING "%s: Adapter must be open for this operation, doh!!\n",dev->name) ; 1334 printk(KERN_WARNING "%s: Adapter must be open for this operation, doh!!\n",dev->name) ;
@@ -1404,7 +1404,7 @@ static void olympic_arb_cmd(struct net_device *dev)
1404 printk("Loc %d = %02x\n",i,readb(frame_data + i)); 1404 printk("Loc %d = %02x\n",i,readb(frame_data + i));
1405 } 1405 }
1406 1406
1407 printk("next %04x, fs %02x, len %04x \n",readw(buf_ptr+offsetof(struct mac_receive_buffer,next)), readb(buf_ptr+offsetof(struct mac_receive_buffer,frame_status)), readw(buf_ptr+offsetof(struct mac_receive_buffer,buffer_length))); 1407 printk("next %04x, fs %02x, len %04x\n",readw(buf_ptr+offsetof(struct mac_receive_buffer,next)), readb(buf_ptr+offsetof(struct mac_receive_buffer,frame_status)), readw(buf_ptr+offsetof(struct mac_receive_buffer,buffer_length)));
1408} 1408}
1409#endif 1409#endif
1410 mac_frame = dev_alloc_skb(frame_len) ; 1410 mac_frame = dev_alloc_skb(frame_len) ;
@@ -1426,7 +1426,7 @@ static void olympic_arb_cmd(struct net_device *dev)
1426 1426
1427 if (olympic_priv->olympic_network_monitor) { 1427 if (olympic_priv->olympic_network_monitor) {
1428 struct trh_hdr *mac_hdr; 1428 struct trh_hdr *mac_hdr;
1429 printk(KERN_WARNING "%s: Received MAC Frame, details: \n",dev->name); 1429 printk(KERN_WARNING "%s: Received MAC Frame, details:\n",dev->name);
1430 mac_hdr = tr_hdr(mac_frame); 1430 mac_hdr = tr_hdr(mac_frame);
1431 printk(KERN_WARNING "%s: MAC Frame Dest. Addr: %pM\n", 1431 printk(KERN_WARNING "%s: MAC Frame Dest. Addr: %pM\n",
1432 dev->name, mac_hdr->daddr); 1432 dev->name, mac_hdr->daddr);
@@ -1489,20 +1489,20 @@ drop_frame:
1489 writel(readl(olympic_mmio+BCTL)&~(3<<13),olympic_mmio+BCTL); 1489 writel(readl(olympic_mmio+BCTL)&~(3<<13),olympic_mmio+BCTL);
1490 netif_stop_queue(dev); 1490 netif_stop_queue(dev);
1491 olympic_priv->srb = readw(olympic_priv->olympic_lap + LAPWWO) ; 1491 olympic_priv->srb = readw(olympic_priv->olympic_lap + LAPWWO) ;
1492 printk(KERN_WARNING "%s: Adapter has been closed \n", dev->name) ; 1492 printk(KERN_WARNING "%s: Adapter has been closed\n", dev->name);
1493 } /* If serious error */ 1493 } /* If serious error */
1494 1494
1495 if (olympic_priv->olympic_message_level) { 1495 if (olympic_priv->olympic_message_level) {
1496 if (lan_status_diff & LSC_SIG_LOSS) 1496 if (lan_status_diff & LSC_SIG_LOSS)
1497 printk(KERN_WARNING "%s: No receive signal detected \n", dev->name) ; 1497 printk(KERN_WARNING "%s: No receive signal detected\n", dev->name);
1498 if (lan_status_diff & LSC_HARD_ERR) 1498 if (lan_status_diff & LSC_HARD_ERR)
1499 printk(KERN_INFO "%s: Beaconing \n",dev->name); 1499 printk(KERN_INFO "%s: Beaconing\n",dev->name);
1500 if (lan_status_diff & LSC_SOFT_ERR) 1500 if (lan_status_diff & LSC_SOFT_ERR)
1501 printk(KERN_WARNING "%s: Adapter transmitted Soft Error Report Mac Frame \n",dev->name); 1501 printk(KERN_WARNING "%s: Adapter transmitted Soft Error Report Mac Frame\n",dev->name);
1502 if (lan_status_diff & LSC_TRAN_BCN) 1502 if (lan_status_diff & LSC_TRAN_BCN)
1503 printk(KERN_INFO "%s: We are tranmitting the beacon, aaah\n",dev->name); 1503 printk(KERN_INFO "%s: We are tranmitting the beacon, aaah\n",dev->name);
1504 if (lan_status_diff & LSC_SS) 1504 if (lan_status_diff & LSC_SS)
1505 printk(KERN_INFO "%s: Single Station on the ring \n", dev->name); 1505 printk(KERN_INFO "%s: Single Station on the ring\n", dev->name);
1506 if (lan_status_diff & LSC_RING_REC) 1506 if (lan_status_diff & LSC_RING_REC)
1507 printk(KERN_INFO "%s: Ring recovery ongoing\n",dev->name); 1507 printk(KERN_INFO "%s: Ring recovery ongoing\n",dev->name);
1508 if (lan_status_diff & LSC_FDX_MODE) 1508 if (lan_status_diff & LSC_FDX_MODE)
@@ -1512,7 +1512,7 @@ drop_frame:
1512 if (lan_status_diff & LSC_CO) { 1512 if (lan_status_diff & LSC_CO) {
1513 1513
1514 if (olympic_priv->olympic_message_level) 1514 if (olympic_priv->olympic_message_level)
1515 printk(KERN_INFO "%s: Counter Overflow \n", dev->name); 1515 printk(KERN_INFO "%s: Counter Overflow\n", dev->name);
1516 1516
1517 /* Issue READ.LOG command */ 1517 /* Issue READ.LOG command */
1518 1518
@@ -1551,7 +1551,7 @@ drop_frame:
1551 1551
1552 } /* Lan.change.status */ 1552 } /* Lan.change.status */
1553 else 1553 else
1554 printk(KERN_WARNING "%s: Unknown arb command \n", dev->name); 1554 printk(KERN_WARNING "%s: Unknown arb command\n", dev->name);
1555} 1555}
1556 1556
1557static void olympic_asb_bh(struct net_device *dev) 1557static void olympic_asb_bh(struct net_device *dev)
@@ -1578,10 +1578,10 @@ static void olympic_asb_bh(struct net_device *dev)
1578 if (olympic_priv->asb_queued == 2) { 1578 if (olympic_priv->asb_queued == 2) {
1579 switch (readb(asb_block+2)) { 1579 switch (readb(asb_block+2)) {
1580 case 0x01: 1580 case 0x01:
1581 printk(KERN_WARNING "%s: Unrecognized command code \n", dev->name); 1581 printk(KERN_WARNING "%s: Unrecognized command code\n", dev->name);
1582 break ; 1582 break ;
1583 case 0x26: 1583 case 0x26:
1584 printk(KERN_WARNING "%s: Unrecognized buffer address \n", dev->name); 1584 printk(KERN_WARNING "%s: Unrecognized buffer address\n", dev->name);
1585 break ; 1585 break ;
1586 case 0xFF: 1586 case 0xFF:
1587 /* Valid response, everything should be ok again */ 1587 /* Valid response, everything should be ok again */
diff --git a/drivers/net/tokenring/tms380tr.c b/drivers/net/tokenring/tms380tr.c
index ee71bcfb3753..b545e20d2898 100644
--- a/drivers/net/tokenring/tms380tr.c
+++ b/drivers/net/tokenring/tms380tr.c
@@ -1391,7 +1391,7 @@ static int tms380tr_bringup_diags(struct net_device *dev)
1391 Status &= STS_MASK; 1391 Status &= STS_MASK;
1392 1392
1393 if(tms380tr_debug > 3) 1393 if(tms380tr_debug > 3)
1394 printk(KERN_DEBUG " %04X \n", Status); 1394 printk(KERN_DEBUG " %04X\n", Status);
1395 /* BUD successfully completed */ 1395 /* BUD successfully completed */
1396 if(Status == STS_INITIALIZE) 1396 if(Status == STS_INITIALIZE)
1397 return (1); 1397 return (1);
@@ -1847,7 +1847,7 @@ static void tms380tr_chk_irq(struct net_device *dev)
1847 break; 1847 break;
1848 1848
1849 case DMA_WRITE_ABORT: 1849 case DMA_WRITE_ABORT:
1850 printk(KERN_INFO "%s: DMA write operation aborted: \n", 1850 printk(KERN_INFO "%s: DMA write operation aborted:\n",
1851 dev->name); 1851 dev->name);
1852 switch (AdapterCheckBlock[1]) 1852 switch (AdapterCheckBlock[1])
1853 { 1853 {