mirror of
https://github.com/ep00ch/lwip-contrib-mac.git
synced 2024-06-02 10:41:29 +00:00
correct error messages
This commit is contained in:
parent
be3fde3840
commit
2a5e096165
|
@ -133,13 +133,13 @@ low_level_init(struct netif *netif)
|
||||||
PACKET_LIB_GET_ADAPTER_NETADDRESS(&netaddr);
|
PACKET_LIB_GET_ADAPTER_NETADDRESS(&netaddr);
|
||||||
if (get_adapter_index_from_addr(ip4_addr_get_u32(&netaddr), guid, GUID_LEN) < 0) {
|
if (get_adapter_index_from_addr(ip4_addr_get_u32(&netaddr), guid, GUID_LEN) < 0) {
|
||||||
printf("ERROR initializing network adapter, failed to get GUID for network address %s\n", ip_ntoa(&netaddr));
|
printf("ERROR initializing network adapter, failed to get GUID for network address %s\n", ip_ntoa(&netaddr));
|
||||||
LWIP_ASSERT("ERROR initializing network adapter!\n", 0);
|
LWIP_ASSERT("ERROR initializing network adapter, failed to get GUID for network address!", 0);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
adapter_num = get_adapter_index(guid);
|
adapter_num = get_adapter_index(guid);
|
||||||
if (adapter_num < 0) {
|
if (adapter_num < 0) {
|
||||||
printf("ERROR finding network adapter with GUID \"%s\"!\n", guid);
|
printf("ERROR finding network adapter with GUID \"%s\"!\n", guid);
|
||||||
LWIP_ASSERT("ERROR initializing network adapter!\n", 0);
|
LWIP_ASSERT("ERROR finding network adapter with expected GUID!", 0);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -159,7 +159,7 @@ low_level_init(struct netif *netif)
|
||||||
if ((netif->state = init_adapter(adapter_num, adapter_mac_addr,
|
if ((netif->state = init_adapter(adapter_num, adapter_mac_addr,
|
||||||
ethernetif_process_input, netif, &linkstate)) == NULL) {
|
ethernetif_process_input, netif, &linkstate)) == NULL) {
|
||||||
printf("ERROR initializing network adapter %d!\n", PACKET_LIB_ADAPTER_NR);
|
printf("ERROR initializing network adapter %d!\n", PACKET_LIB_ADAPTER_NR);
|
||||||
LWIP_ASSERT("ERROR initializing network adapter!\n", 0);
|
LWIP_ASSERT("ERROR initializing network adapter!", 0);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user