From 6d87138ea7513761ae864e65dbf03d7f614aeb5d Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Thu, 7 Jul 2011 16:32:53 +0200 Subject: pingu: fix misc bugs fix some segfaults and some logic bugs --- pingu_host.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'pingu_host.c') diff --git a/pingu_host.c b/pingu_host.c index eda2c94..26b4d83 100644 --- a/pingu_host.c +++ b/pingu_host.c @@ -8,12 +8,13 @@ void pingu_host_set_status(struct pingu_host *host, int status) { const char *action; + host->burst.active = 0; if (host->status == status) { - log_debug("%s: status is still %s", host->host, status); + log_debug("%s: status is still %i", host->host, status); return; } host->status = status; - log_info("%s: new status: %s", host->host, status); + log_info("%s: new status: %i", host->host, status); switch (host->status) { case 0: action = host->down_action; -- cgit v1.2.3