]> rtime.felk.cvut.cz Git - pes-rpp/rpp-lwip.git/commitdiff
netdb: fix debug output when IPv6 is enabled
authorgoldsimon <goldsimon@gmx.de>
Mon, 24 Aug 2015 06:02:23 +0000 (08:02 +0200)
committergoldsimon <goldsimon@gmx.de>
Mon, 24 Aug 2015 06:02:23 +0000 (08:02 +0200)
src/api/netdb.c

index f6a694fbb7624c08c7dbf4d6c9e50ee4a23695ef..3996ec91432af4a42804e754f3dd8fdf0e094916 100644 (file)
@@ -127,7 +127,7 @@ lwip_gethostbyname(const char *name)
     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((ip4_addr_t*)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])));
     }
   }
 #endif /* DNS_DEBUG */