From 1890ec51294c6aa8009079cc7355ce6f165e59ea Mon Sep 17 00:00:00 2001 From: zhanghongyu Date: Thu, 6 Jul 2023 22:09:06 +0800 Subject: [PATCH] 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 --- net/arp/arp_send.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/net/arp/arp_send.c b/net/arp/arp_send.c index 2b9932dcb6..bed3b58966 100644 --- a/net/arp/arp_send.c +++ b/net/arp/arp_send.c @@ -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);