diff options
Diffstat (limited to 'drivers/net/ariadne.c')
-rw-r--r-- | drivers/net/ariadne.c | 44 |
1 files changed, 20 insertions, 24 deletions
diff --git a/drivers/net/ariadne.c b/drivers/net/ariadne.c index 2c020a36177e..3fa3bccd1adb 100644 --- a/drivers/net/ariadne.c +++ b/drivers/net/ariadne.c | |||
@@ -166,6 +166,7 @@ static int __devinit ariadne_init_one(struct zorro_dev *z, | |||
166 | struct net_device *dev; | 166 | struct net_device *dev; |
167 | struct ariadne_private *priv; | 167 | struct ariadne_private *priv; |
168 | int err; | 168 | int err; |
169 | DECLARE_MAC_BUF(mac); | ||
169 | 170 | ||
170 | r1 = request_mem_region(base_addr, sizeof(struct Am79C960), "Am79C960"); | 171 | r1 = request_mem_region(base_addr, sizeof(struct Am79C960), "Am79C960"); |
171 | if (!r1) | 172 | if (!r1) |
@@ -216,9 +217,8 @@ static int __devinit ariadne_init_one(struct zorro_dev *z, | |||
216 | zorro_set_drvdata(z, dev); | 217 | zorro_set_drvdata(z, dev); |
217 | 218 | ||
218 | printk(KERN_INFO "%s: Ariadne at 0x%08lx, Ethernet Address " | 219 | printk(KERN_INFO "%s: Ariadne at 0x%08lx, Ethernet Address " |
219 | "%02x:%02x:%02x:%02x:%02x:%02x\n", dev->name, board, | 220 | "%s\n", dev->name, board, |
220 | dev->dev_addr[0], dev->dev_addr[1], dev->dev_addr[2], | 221 | print_mac(mac, dev->dev_addr)); |
221 | dev->dev_addr[3], dev->dev_addr[4], dev->dev_addr[5]); | ||
222 | 222 | ||
223 | return 0; | 223 | return 0; |
224 | } | 224 | } |
@@ -614,21 +614,17 @@ static int ariadne_start_xmit(struct sk_buff *skb, struct net_device *dev) | |||
614 | /* Fill in a Tx ring entry */ | 614 | /* Fill in a Tx ring entry */ |
615 | 615 | ||
616 | #if 0 | 616 | #if 0 |
617 | printk(KERN_DEBUG "TX pkt type 0x%04x from ", ((u_short *)skb->data)[6]); | 617 | { |
618 | { | 618 | DECLARE_MAC_BUF(mac); |
619 | int i; | 619 | DECLARE_MAC_BUF(mac2); |
620 | u_char *ptr = &((u_char *)skb->data)[6]; | 620 | |
621 | for (i = 0; i < 6; i++) | 621 | printk(KERN_DEBUG "TX pkt type 0x%04x from %s to %s " |
622 | printk("%02x", ptr[i]); | 622 | " data 0x%08x len %d\n", |
623 | } | 623 | ((u_short *)skb->data)[6], |
624 | printk(" to "); | 624 | print_mac(mac, ((const u8 *)skb->data)+6), |
625 | { | 625 | print_mac(mac, (const u8 *)skb->data), |
626 | int i; | 626 | (int)skb->data, (int)skb->len); |
627 | u_char *ptr = (u_char *)skb->data; | 627 | } |
628 | for (i = 0; i < 6; i++) | ||
629 | printk("%02x", ptr[i]); | ||
630 | } | ||
631 | printk(" data 0x%08x len %d\n", (int)skb->data, (int)skb->len); | ||
632 | #endif | 628 | #endif |
633 | 629 | ||
634 | local_irq_save(flags); | 630 | local_irq_save(flags); |
@@ -748,22 +744,22 @@ static int ariadne_rx(struct net_device *dev) | |||
748 | skb_copy_to_linear_data(skb, (char *)priv->rx_buff[entry], pkt_len); | 744 | skb_copy_to_linear_data(skb, (char *)priv->rx_buff[entry], pkt_len); |
749 | skb->protocol=eth_type_trans(skb,dev); | 745 | skb->protocol=eth_type_trans(skb,dev); |
750 | #if 0 | 746 | #if 0 |
747 | { | ||
748 | DECLARE_MAC_BUF(mac); | ||
749 | |||
751 | printk(KERN_DEBUG "RX pkt type 0x%04x from ", | 750 | printk(KERN_DEBUG "RX pkt type 0x%04x from ", |
752 | ((u_short *)skb->data)[6]); | 751 | ((u_short *)skb->data)[6]); |
753 | { | 752 | { |
754 | int i; | ||
755 | u_char *ptr = &((u_char *)skb->data)[6]; | 753 | u_char *ptr = &((u_char *)skb->data)[6]; |
756 | for (i = 0; i < 6; i++) | 754 | printk("%s", print_mac(mac, ptr)); |
757 | printk("%02x", ptr[i]); | ||
758 | } | 755 | } |
759 | printk(" to "); | 756 | printk(" to "); |
760 | { | 757 | { |
761 | int i; | ||
762 | u_char *ptr = (u_char *)skb->data; | 758 | u_char *ptr = (u_char *)skb->data; |
763 | for (i = 0; i < 6; i++) | 759 | printk("%s", print_mac(mac, ptr)); |
764 | printk("%02x", ptr[i]); | ||
765 | } | 760 | } |
766 | printk(" data 0x%08x len %d\n", (int)skb->data, (int)skb->len); | 761 | printk(" data 0x%08x len %d\n", (int)skb->data, (int)skb->len); |
762 | } | ||
767 | #endif | 763 | #endif |
768 | 764 | ||
769 | netif_rx(skb); | 765 | netif_rx(skb); |