From 8a900aa81f54ad699938f43c6bcadf9bdf1760e6 Mon Sep 17 00:00:00 2001 From: Simon Goldschmidt Date: Fri, 5 Mar 2021 13:04:18 +0100 Subject: [PATCH] netdb: fix alignment warning in debug output see bug #58650 --- src/api/netdb.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/api/netdb.c b/src/api/netdb.c index 9af2d1d4..ee782978 100644 --- a/src/api/netdb.c +++ b/src/api/netdb.c @@ -128,8 +128,7 @@ lwip_gethostbyname(const char *name) if (s_hostent.h_addr_list != NULL) { u8_t idx; for (idx = 0; s_hostent.h_addr_list[idx]; idx++) { - LWIP_DEBUGF(DNS_DEBUG, ("hostent.h_addr_list[%i] == %p\n", idx, s_hostent.h_addr_list[idx])); - LWIP_DEBUGF(DNS_DEBUG, ("hostent.h_addr_list[%i]-> == %s\n", idx, ipaddr_ntoa((ip_addr_t *)s_hostent.h_addr_list[idx]))); + LWIP_DEBUGF(DNS_DEBUG, ("hostent.h_addr_list[%i]-> == %s\n", idx, ipaddr_ntoa(s_phostent_addr[idx]))); } } #endif /* DNS_DEBUG */