diff options
author | Frans Pop <elendil@planet.nl> | 2010-03-24 03:57:33 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-03-24 17:10:07 -0400 |
commit | 014e46686eff2159bac0887465fed7662c379ad3 (patch) | |
tree | 14034000d602920a382f7efd4d8300a8c58c2c1c /drivers/net/tokenring/olympic.c | |
parent | 84d57bd61866c06aee5658fabe43292a231a5992 (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/olympic.c')
-rw-r--r-- | drivers/net/tokenring/olympic.c | 62 |
1 files changed, 31 insertions, 31 deletions
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 | ||
1557 | static void olympic_asb_bh(struct net_device *dev) | 1557 | static 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 */ |