aboutsummaryrefslogtreecommitdiffstats
path: root/core/lwip/src/netif/undiif.c
diff options
context:
space:
mode:
Diffstat (limited to 'core/lwip/src/netif/undiif.c')
-rw-r--r--core/lwip/src/netif/undiif.c22
1 files changed, 17 insertions, 5 deletions
diff --git a/core/lwip/src/netif/undiif.c b/core/lwip/src/netif/undiif.c
index 1baeb975..20c90681 100644
--- a/core/lwip/src/netif/undiif.c
+++ b/core/lwip/src/netif/undiif.c
@@ -107,7 +107,7 @@ low_level_init(struct netif *netif)
pxe_call(PXENV_UNDI_GET_INFORMATION, &undi_info);
- dprintf("UNDI: baseio %04x int %d MTU %d type %d\n",
+ printf("UNDI: baseio %04x int %d MTU %d type %d\n",
undi_info.BaseIo, undi_info.IntNumber, undi_info.MaxTranUnit,
undi_info.HwType);
@@ -120,10 +120,10 @@ low_level_init(struct netif *netif)
/* maximum transfer unit */
netif->mtu = undi_info.MaxTranUnit;
- dprintf("UNDI: hw address");
+ printf("UNDI: hw address");
for (i = 0; i < netif->hwaddr_len; i++)
- dprintf("%c%02x", i ? ':' : ' ', (uint8_t)netif->hwaddr[i]);
- dprintf("\n");
+ printf("%c%02x", i ? ':' : ' ', (uint8_t)netif->hwaddr[i]);
+ printf("\n");
/* device capabilities */
/* don't set NETIF_FLAG_ETHARP if this device is not an ethernet one */
@@ -187,6 +187,18 @@ low_level_output(struct netif *netif, struct pbuf *p)
}
//printf("undiif_output, len = %d ", r - pkt_buf);
+#if 0
+ {
+ char *p;
+ for (p = pkt_buf; p < r; p++) {
+ if (((p - pkt_buf) & 0xf) == 0) {
+ printf("\n%04x: ", p - pkt_buf);
+ }
+ printf("%02x ", *((unsigned char *)p));
+ }
+ printf("\n");
+ }
+#endif
do {
memset(&pxe, 0, sizeof pxe);
@@ -403,7 +415,7 @@ err_t undi_tcpip_start(struct ip_addr *ipaddr,
// This should be done *after* the threading system and receive thread
// have both been started.
- dprintf("undi_netif: ip %d.%d.%d.%d netmask %d.%d.%d.%d gw %d.%d.%d.%d\n",
+ printf("undi_netif: ip %d.%d.%d.%d netmask %d.%d.%d.%d gw %d.%d.%d.%d\n",
((uint8_t *)ipaddr)[0],
((uint8_t *)ipaddr)[1],
((uint8_t *)ipaddr)[2],