chiark / gitweb /
site: When reporting resolution complete, print only iaddr
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 25 Oct 2014 18:20:14 +0000 (19:20 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 25 Oct 2014 18:20:14 +0000 (19:20 +0100)
For any particular site, the comm (and ix) are always going to be the
same.  Printing only the address and port produces less clutter in the
log.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
site.c

diff --git a/site.c b/site.c
index 756ad35..f0548f9 100644 (file)
--- a/site.c
+++ b/site.c
@@ -1240,7 +1240,7 @@ static void decrement_resolving_count(struct site *st, int by)
                 st->resolving_n_results_all, naddrs);
        }
        slog(st,LOG_STATE,"resolution completed, %d addrs, eg: %s",
-            naddrs, comm_addr_to_string(&addrs[0]));;
+            naddrs, iaddr_to_string(&addrs[0].ia));;
     }
 
     switch (st->state) {