From 2f8228b029d45bc82c89e0e8a86255028bb04cd6 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Fri, 29 Jul 2011 23:23:07 +0200 Subject: pingu: use host label when logging instead of ip addr --- pingu_host.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'pingu_host.c') diff --git a/pingu_host.c b/pingu_host.c index 640b928..efc3f43 100644 --- a/pingu_host.c +++ b/pingu_host.c @@ -227,13 +227,11 @@ int pingu_host_set_status(struct pingu_host *host, int status) int route_action = 0; host->burst.active = 0; if (host->status == status) { - log_debug("%s: %s: status is still %i", - host->iface->name, host->host, status); + log_debug("%s: status is still %i", host->label, status); return status; } host->status = status; - log_info("%s: %s: new status: %i", - host->iface->name, host->host, status); + log_info("%s: new status: %i", host->label, status); switch (host->status) { case 0: action = host->down_action; -- cgit v1.2.3