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
1 changed files with 3 additions and 1 deletions
|
|
@ -372,7 +372,9 @@ timeout:
|
||||||
/* Increment the retry count */
|
/* Increment the retry count */
|
||||||
|
|
||||||
state.snd_retries++;
|
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);
|
nxsem_destroy(&state.snd_sem);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue