From: Ted Lemon Date: Thu, 28 Dec 2000 23:20:28 +0000 (+0000) Subject: Fix debug message for 'static' operator. X-Git-Tag: V3-BETA-2-PATCH-12~81 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aab30e3b021c8a6c5b219d2fb4becc8c06fd08aa;p=thirdparty%2Fdhcp.git Fix debug message for 'static' operator. --- diff --git a/common/tree.c b/common/tree.c index 8fcee12cd..dabe9d889 100644 --- a/common/tree.c +++ b/common/tree.c @@ -43,7 +43,7 @@ #ifndef lint static char copyright[] = -"$Id: tree.c,v 1.92 2000/11/28 23:23:13 mellon Exp $ Copyright (c) 1995-2000 The Internet Software Consortium. All rights reserved.\n"; +"$Id: tree.c,v 1.93 2000/12/28 23:20:28 mellon Exp $ Copyright (c) 1995-2000 The Internet Software Consortium. All rights reserved.\n"; #endif /* not lint */ #include "dhcpd.h" @@ -1067,7 +1067,12 @@ int evaluate_boolean_expression (result, packet, lease, client_state, case expr_static: if (!lease || !(lease -> flags & STATIC_LEASE)) { #if defined (DEBUG_EXPRESSIONS) - log_debug ("bool: static = false"); + log_debug ("bool: static = false (%s %s %s %d)", + lease ? "y" : "n", + (lease && (lease -> flags & STATIC_LEASE) + ? "y" : "n"), + piaddr (lease -> ip_addr), + lease ? lease -> flags : 0); #endif *result = 0; return 1;