summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Lemon <source@isc.org>2001-10-26 15:47:53 +0000
committerTed Lemon <source@isc.org>2001-10-26 15:47:53 +0000
commit02ecdb9343014b6a23a26560b4d9cae8eef54ead (patch)
treea24609b80d70a721200b9b87658c222910c6e562
parentc838f9dd8bb5a03c453a77770cee6762555a423f (diff)
downloadisc-dhcp-02ecdb9343014b6a23a26560b4d9cae8eef54ead.tar.gz
- Print network name when logging pool checks.
-rw-r--r--server/failover.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/server/failover.c b/server/failover.c
index 88a15d5c..e02ed89c 100644
--- a/server/failover.c
+++ b/server/failover.c
@@ -43,7 +43,7 @@
#ifndef lint
static char copyright[] =
-"$Id: failover.c,v 1.53.2.15 2001/10/17 03:31:02 mellon Exp $ Copyright (c) 1999-2001 The Internet Software Consortium. All rights reserved.\n";
+"$Id: failover.c,v 1.53.2.16 2001/10/26 15:47:53 mellon Exp $ Copyright (c) 1999-2001 The Internet Software Consortium. All rights reserved.\n";
#endif /* not lint */
#include "dhcpd.h"
@@ -2174,8 +2174,10 @@ int dhcp_failover_pool_rebalance (dhcp_failover_state_t *state)
lq = &p -> backup;
}
- log_info ("pool %lx total %d free %d backup %d lts %d",
- (unsigned long)p, p -> lease_count,
+ log_info ("pool %lx %s total %d free %d backup %d lts %d",
+ (unsigned long)p,
+ (p -> shared_network ?
+ p -> shared_network -> name : ""), p -> lease_count,
p -> free_leases, p -> backup_leases, lts);
if (lts > 1) {
@@ -2239,7 +2241,9 @@ int dhcp_failover_pool_check (struct pool *pool)
lts = (pool -> free_leases - pool -> backup_leases) / 2;
log_info ("pool %lx total %d free %d backup %d lts %d",
- (unsigned long)pool, pool -> lease_count,
+ (unsigned long)pool,
+ pool -> shared_network ? pool -> shared_network -> name : "",
+ pool -> lease_count,
pool -> free_leases, pool -> backup_leases, lts);
if (lts > 1) {