summaryrefslogtreecommitdiffstats
path: root/net/dns.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2016-09-15 12:51:27 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2016-09-22 11:30:38 +0200
commitd60230bded854fe5a357c77038cf6089defcfd24 (patch)
tree6c8b3dc4dee496cda1e1f9da5f53b1fa58a2e5ef /net/dns.c
parent581272f8c59a71e8f64a15b6b33bb0d1fc5ac6ba (diff)
downloadbarebox-d60230bded854fe5a357c77038cf6089defcfd24.tar.gz
barebox-d60230bded854fe5a357c77038cf6089defcfd24.tar.xz
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 <s.hauer@pengutronix.de>
Diffstat (limited to 'net/dns.c')
-rw-r--r--net/dns.c6
1 files changed, 2 insertions, 4 deletions
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;