mirror of
https://gitlab.isc.org/isc-projects/dhcp
synced 2025-09-01 14:55:30 +00:00
Put some extra paranoia in logging subroutines.
This commit is contained in:
@@ -43,7 +43,7 @@
|
|||||||
|
|
||||||
#ifndef lint
|
#ifndef lint
|
||||||
static char copyright[] =
|
static char copyright[] =
|
||||||
"$Id: parse.c,v 1.75 2000/06/20 19:59:50 mellon Exp $ Copyright (c) 1995-2000 The Internet Software Consortium. All rights reserved.\n";
|
"$Id: parse.c,v 1.76 2000/06/29 20:05:18 mellon Exp $ Copyright (c) 1995-2000 The Internet Software Consortium. All rights reserved.\n";
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
#include "dhcpd.h"
|
#include "dhcpd.h"
|
||||||
@@ -3886,8 +3886,8 @@ int parse_warn (struct parse *cfile, const char *fmt, ...)
|
|||||||
lexbuf [lix] = 0;
|
lexbuf [lix] = 0;
|
||||||
|
|
||||||
#ifndef DEBUG
|
#ifndef DEBUG
|
||||||
syslog (log_priority | LOG_ERR, mbuf);
|
syslog (log_priority | LOG_ERR, "%s", mbuf);
|
||||||
syslog (log_priority | LOG_ERR, cfile -> token_line);
|
syslog (log_priority | LOG_ERR, "%s", cfile -> token_line);
|
||||||
if (cfile -> lexchar < 81)
|
if (cfile -> lexchar < 81)
|
||||||
syslog (log_priority | LOG_ERR, "%s^", lexbuf);
|
syslog (log_priority | LOG_ERR, "%s^", lexbuf);
|
||||||
#endif
|
#endif
|
||||||
|
@@ -42,7 +42,7 @@
|
|||||||
|
|
||||||
#ifndef lint
|
#ifndef lint
|
||||||
static char copyright[] =
|
static char copyright[] =
|
||||||
"$Id: errwarn.c,v 1.4 2000/03/17 04:00:12 mellon Exp $ Copyright (c) 1996 The Internet Software Consortium. All rights reserved.\n";
|
"$Id: errwarn.c,v 1.5 2000/06/29 20:05:13 mellon Exp $ Copyright (c) 1996 The Internet Software Consortium. All rights reserved.\n";
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
#include <omapip/omapip_p.h>
|
#include <omapip/omapip_p.h>
|
||||||
@@ -72,7 +72,7 @@ void log_fatal (const char * fmt, ... )
|
|||||||
va_end (list);
|
va_end (list);
|
||||||
|
|
||||||
#ifndef DEBUG
|
#ifndef DEBUG
|
||||||
syslog (log_priority | LOG_ERR, mbuf);
|
syslog (log_priority | LOG_ERR, "%s", mbuf);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Also log it to stderr? */
|
/* Also log it to stderr? */
|
||||||
@@ -104,7 +104,7 @@ int log_error (const char * fmt, ...)
|
|||||||
va_end (list);
|
va_end (list);
|
||||||
|
|
||||||
#ifndef DEBUG
|
#ifndef DEBUG
|
||||||
syslog (log_priority | LOG_ERR, mbuf);
|
syslog (log_priority | LOG_ERR, "%s", mbuf);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (log_perror) {
|
if (log_perror) {
|
||||||
@@ -128,7 +128,7 @@ int log_info (const char *fmt, ...)
|
|||||||
va_end (list);
|
va_end (list);
|
||||||
|
|
||||||
#ifndef DEBUG
|
#ifndef DEBUG
|
||||||
syslog (log_priority | LOG_INFO, mbuf);
|
syslog (log_priority | LOG_INFO, "%s", mbuf);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (log_perror) {
|
if (log_perror) {
|
||||||
@@ -152,7 +152,7 @@ int log_debug (const char *fmt, ...)
|
|||||||
va_end (list);
|
va_end (list);
|
||||||
|
|
||||||
#ifndef DEBUG
|
#ifndef DEBUG
|
||||||
syslog (log_priority | LOG_DEBUG, mbuf);
|
syslog (log_priority | LOG_DEBUG, "%s", mbuf);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (log_perror) {
|
if (log_perror) {
|
||||||
|
Reference in New Issue
Block a user