2
0
mirror of https://gitlab.isc.org/isc-projects/dhcp synced 2025-08-31 06:15:55 +00:00

Fix up args to printf-like functions (thanks to Pedro Ribiero).

This commit is contained in:
Ted Lemon
1999-10-12 16:00:34 +00:00
parent a414e627d8
commit ab58ff49e0
8 changed files with 44 additions and 29 deletions

View File

@@ -22,7 +22,7 @@
#ifndef lint
static char copyright[] =
"$Id: tree.c,v 1.59 1999/10/07 06:35:45 mellon Exp $ Copyright (c) 1995, 1996, 1997, 1998 The Internet Software Consortium. All rights reserved.\n";
"$Id: tree.c,v 1.60 1999/10/12 16:00:27 mellon Exp $ Copyright (c) 1995, 1996, 1997, 1998 The Internet Software Consortium. All rights reserved.\n";
#endif /* not lint */
#include "dhcpd.h"
@@ -64,7 +64,7 @@ int make_const_option_cache (oc, buffer, data, len, option, name)
}
if (!option_cache_allocate (oc, name)) {
log_error ("%s: can't allocate option cache.");
log_error ("%s: can't allocate option cache.", name);
buffer_dereference (&bp, name);
return 0;
}
@@ -1095,7 +1095,7 @@ int evaluate_data_expression (result, packet, lease,
unsigned buflen, i;
if (len != 8 && len != 16 && len != 32) {
log_info ("binary_to_ascii: %s %d!",
log_info ("binary_to_ascii: %s %ld!",
"invalid width", len);
goto b2a_out;
}
@@ -1104,7 +1104,7 @@ int evaluate_data_expression (result, packet, lease,
/* The buffer must be a multiple of the number's
width. */
if (other.len % len) {
log_info ("binary-to-ascii: %s %d %s %d!",
log_info ("binary-to-ascii: %s %d %s %ld!",
"length of buffer", other.len,
"not a multiple of width", len);
status = 0;
@@ -1211,7 +1211,7 @@ int evaluate_data_expression (result, packet, lease,
/* The buffer must be a multiple of the number's
width. */
if (other.len % len) {
log_info ("reverse: %s %d %s %d!",
log_info ("reverse: %s %d %s %ld!",
"length of buffer", other.len,
"not a multiple of width", len);
status = 0;