arp_wait: print dest ip address when receive wait timeout
If the arp query times out, the destination ip address is displayed to help locate the problem Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
This commit is contained in:
parent
075738cf14
commit
1890ec5129
|
@ -372,7 +372,9 @@ timeout:
|
|||
/* Increment the retry count */
|
||||
|
||||
state.snd_retries++;
|
||||
nerr("ERROR: arp_wait failed: %d\n", ret);
|
||||
nerr("ERROR: arp_wait failed: %d, ipaddr: %u.%u.%u.%u\n", ret,
|
||||
ip4_addr1(ipaddr), ip4_addr2(ipaddr),
|
||||
ip4_addr3(ipaddr), ip4_addr4(ipaddr));
|
||||
}
|
||||
|
||||
nxsem_destroy(&state.snd_sem);
|
||||
|
|
Loading…
Reference in New Issue