#ifndef lint
static char copyright[] =
-"$Id: errwarn.c,v 1.10 1996/08/29 09:49:53 mellon Exp $ Copyright (c) 1996 The Internet Software Consortium. All rights reserved.\n";
+"$Id: errwarn.c,v 1.11 1996/09/02 21:15:27 mellon Exp $ Copyright (c) 1996 The Internet Software Consortium. All rights reserved.\n";
#endif /* not lint */
#include "dhcpd.h"
vsnprintf (mbuf, sizeof mbuf, fbuf, list);
va_end (list);
+#ifndef DEBUG
syslog (log_priority | LOG_ERR, mbuf);
+#endif
/* Also log it to stderr? */
if (log_perror) {
vsnprintf (mbuf, sizeof mbuf, fbuf, list);
va_end (list);
+#ifndef DEBUG
syslog (log_priority | LOG_ERR, mbuf);
+#endif
if (log_perror) {
write (1, mbuf, strlen (mbuf));
vsnprintf (mbuf, sizeof mbuf, fbuf, list);
va_end (list);
+#ifndef DEBUG
syslog (log_priority | LOG_INFO, mbuf);
+#endif
if (log_perror) {
write (1, mbuf, strlen (mbuf));
vsnprintf (mbuf, sizeof mbuf, fbuf, list);
va_end (list);
+#ifndef DEBUG
syslog (log_priority | LOG_DEBUG, mbuf);
+#endif
if (log_perror) {
write (1, mbuf, strlen (mbuf));
vsnprintf (mbuf, sizeof mbuf, fbuf, list);
va_end (list);
+#ifndef DEBUG
syslog (log_priority | LOG_ERR, mbuf);
syslog (log_priority | LOG_ERR, token_line);
if (lexline < 81)
syslog (log_priority | LOG_ERR,
"%s^", &spaces [sizeof spaces - lexchar]);
+#endif
if (log_perror) {
write (1, mbuf, strlen (mbuf));
#ifndef lint
static char copyright[] =
-"$Id: errwarn.c,v 1.10 1996/08/29 09:49:53 mellon Exp $ Copyright (c) 1996 The Internet Software Consortium. All rights reserved.\n";
+"$Id: errwarn.c,v 1.11 1996/09/02 21:15:27 mellon Exp $ Copyright (c) 1996 The Internet Software Consortium. All rights reserved.\n";
#endif /* not lint */
#include "dhcpd.h"
vsnprintf (mbuf, sizeof mbuf, fbuf, list);
va_end (list);
+#ifndef DEBUG
syslog (log_priority | LOG_ERR, mbuf);
+#endif
/* Also log it to stderr? */
if (log_perror) {
vsnprintf (mbuf, sizeof mbuf, fbuf, list);
va_end (list);
+#ifndef DEBUG
syslog (log_priority | LOG_ERR, mbuf);
+#endif
if (log_perror) {
write (1, mbuf, strlen (mbuf));
vsnprintf (mbuf, sizeof mbuf, fbuf, list);
va_end (list);
+#ifndef DEBUG
syslog (log_priority | LOG_INFO, mbuf);
+#endif
if (log_perror) {
write (1, mbuf, strlen (mbuf));
vsnprintf (mbuf, sizeof mbuf, fbuf, list);
va_end (list);
+#ifndef DEBUG
syslog (log_priority | LOG_DEBUG, mbuf);
+#endif
if (log_perror) {
write (1, mbuf, strlen (mbuf));
vsnprintf (mbuf, sizeof mbuf, fbuf, list);
va_end (list);
+#ifndef DEBUG
syslog (log_priority | LOG_ERR, mbuf);
syslog (log_priority | LOG_ERR, token_line);
if (lexline < 81)
syslog (log_priority | LOG_ERR,
"%s^", &spaces [sizeof spaces - lexchar]);
+#endif
if (log_perror) {
write (1, mbuf, strlen (mbuf));