From 8419d184411e8cd9457346a7a3d5f9734211a8b2 Mon Sep 17 00:00:00 2001 From: David Fifield Date: Sat, 6 Oct 2012 21:25:25 -0700 Subject: Use fmt_addrport where appropriate. This is mostly a conversion from this pattern: log("... %s:%d ...", fmt_and_decorate_addr(&addr), port); to this: log("... %s ...", fmt_addrport(&addr, port)); The output is the same in all cases. --- src/or/rendservice.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/or/rendservice.c') diff --git a/src/or/rendservice.c b/src/or/rendservice.c index 6cae4bc881..a1d4ac6f48 100644 --- a/src/or/rendservice.c +++ b/src/or/rendservice.c @@ -272,9 +272,8 @@ rend_add_service(rend_service_t *service) service->directory); for (i = 0; i < smartlist_len(service->ports); ++i) { p = smartlist_get(service->ports, i); - log_debug(LD_REND,"Service maps port %d to %s:%d", - p->virtual_port, fmt_and_decorate_addr(&p->real_addr), - p->real_port); + log_debug(LD_REND,"Service maps port %d to %s", + p->virtual_port, fmt_addrport(&p->real_addr, p->real_port)); } } } -- cgit v1.2.3-54-g00ecf