|
@@ -1,5 +1,6 @@
|
1
|
1
|
#include <stdint.h>
|
2
|
2
|
#include <errno.h>
|
|
3
|
+#include <vsprintf.h>
|
3
|
4
|
#include <gpxe/if_ether.h>
|
4
|
5
|
#include <gpxe/netdevice.h>
|
5
|
6
|
#include <gpxe/ethernet.h>
|
|
@@ -25,6 +26,7 @@ static int legacy_transmit ( struct net_device *netdev, struct pk_buff *pkb ) {
|
25
|
26
|
struct ethhdr *ethhdr = pkb->data;
|
26
|
27
|
int pad_len;
|
27
|
28
|
|
|
29
|
+ DBG ( "Transmitting %d bytes\n", pkb_len ( pkb ) );
|
28
|
30
|
pad_len = ( ETH_ZLEN - pkb_len ( pkb ) );
|
29
|
31
|
if ( pad_len > 0 )
|
30
|
32
|
memset ( pkb_put ( pkb, pad_len ), 0, pad_len );
|
|
@@ -46,6 +48,7 @@ static void legacy_poll ( struct net_device *netdev ) {
|
46
|
48
|
|
47
|
49
|
nic->packet = pkb->data;
|
48
|
50
|
if ( nic->nic_op->poll ( nic, 1 ) ) {
|
|
51
|
+ DBG ( "Received %d bytes\n", nic->packetlen );
|
49
|
52
|
pkb_put ( pkb, nic->packetlen );
|
50
|
53
|
netdev_rx ( netdev, pkb );
|
51
|
54
|
} else {
|
|
@@ -87,7 +90,8 @@ int legacy_probe ( struct pci_device *pci,
|
87
|
90
|
}
|
88
|
91
|
|
89
|
92
|
/* Do not remove this message */
|
90
|
|
- printf ( "WARNING: Using legacy NIC wrapper\n" );
|
|
93
|
+ printf ( "WARNING: Using legacy NIC wrapper on %s\n",
|
|
94
|
+ ethernet_protocol.ntoa ( nic.node_addr ) );
|
91
|
95
|
|
92
|
96
|
legacy_registered = 1;
|
93
|
97
|
return 0;
|