From d60230bded854fe5a357c77038cf6089defcfd24 Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Thu, 15 Sep 2016 12:51:27 +0200 Subject: convert users to %pI4 Convert users of ip_to_string() and print_IPaddr() to %pI4 and remove the now unused functions. Signed-off-by: Sascha Hauer --- net/dns.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'net/dns.c') diff --git a/net/dns.c b/net/dns.c index 2acdb935ed..700c6b0259 100644 --- a/net/dns.c +++ b/net/dns.c @@ -221,7 +221,7 @@ IPaddr_t resolv(const char *host) if (string_to_ip(ns, &ip)) return 0; - debug("resolving host %s via nameserver %s\n", host, ip_to_string(ip)); + debug("resolving host %s via nameserver %pI4\n", host, &ip); dns_con = net_udp_new(ip, DNS_PORT, dns_handler, NULL); if (IS_ERR(dns_con)) @@ -258,9 +258,7 @@ static int do_host(int argc, char *argv[]) if (!ip) printf("unknown host %s\n", argv[1]); else { - printf("%s is at ", argv[1]); - print_IPaddr(ip); - printf("\n"); + printf("%s is at %pI4\n", argv[1], &ip); } return 0; -- cgit v1.2.3