Minor fix: debug text inside ethernetif_input

This commit is contained in:
fbernon 2007-07-24 08:49:00 +00:00
parent 62c3de30b9
commit d5a174364a

View File

@ -237,7 +237,7 @@ ethernetif_input(struct netif *netif)
case ETHTYPE_ARP: case ETHTYPE_ARP:
/* full packet send to tcpip_thread to process */ /* full packet send to tcpip_thread to process */
if (netif->input(p, netif)!=ERR_OK) if (netif->input(p, netif)!=ERR_OK)
{ LWIP_DEBUGF(NETIF_DEBUG, ("ethernetif_init: IP input error\n")); { LWIP_DEBUGF(NETIF_DEBUG, ("ethernetif_input: IP input error\n"));
pbuf_free(p); pbuf_free(p);
p = NULL; p = NULL;
} }
@ -262,7 +262,7 @@ ethernetif_input(struct netif *netif)
pbuf_header(p, -sizeof(struct eth_hdr)); pbuf_header(p, -sizeof(struct eth_hdr));
/* pass to network layer */ /* pass to network layer */
if (netif->input(p, netif)!=ERR_OK) if (netif->input(p, netif)!=ERR_OK)
{ LWIP_DEBUGF(NETIF_DEBUG, ("ethernetif_init: IP input error\n")); { LWIP_DEBUGF(NETIF_DEBUG, ("ethernetif_input: IP input error\n"));
pbuf_free(p); pbuf_free(p);
p = NULL; p = NULL;
} }