diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2011-07-29 23:23:07 +0200 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2011-07-29 23:26:57 +0200 |
commit | 2f8228b029d45bc82c89e0e8a86255028bb04cd6 (patch) | |
tree | 6e129dd1f17e4dd5ccee8065b190cb6e66235d02 /pingu_host.c | |
parent | 6a766c18d4329123ca044b4d3668ca763f1d8118 (diff) | |
download | pingu-2f8228b029d45bc82c89e0e8a86255028bb04cd6.tar.bz2 pingu-2f8228b029d45bc82c89e0e8a86255028bb04cd6.tar.xz |
pingu: use host label when logging instead of ip addr
Diffstat (limited to 'pingu_host.c')
-rw-r--r-- | pingu_host.c | 6 |
1 files changed, 2 insertions, 4 deletions
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; |