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:
zhanghongyu 2023-07-06 22:09:06 +08:00 committed by Xiang Xiao
parent 075738cf14
commit 1890ec5129
1 changed files with 3 additions and 1 deletions

View File

@ -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);