diff options
author | Chris Kuethe <ckuethe@cvs.openbsd.org> | 2007-08-22 21:04:31 +0000 |
---|---|---|
committer | Chris Kuethe <ckuethe@cvs.openbsd.org> | 2007-08-22 21:04:31 +0000 |
commit | 1b1ce1d4eabef2f290d1d18cb0015f7efc83cfa5 (patch) | |
tree | a31e3c699c9d393d95b0980f4e03be24cd2ce404 /usr.sbin/ntpd/log.c | |
parent | 195cb071271cf73b0a4551338b5b8c2abfedb1e6 (diff) |
Allow ntpd to log sensor offsets and adjtime calls to syslog at LOG_DEBUG
priority.
ok gwk, mbalmer, weingart
"explicit non-ok from" henning
Diffstat (limited to 'usr.sbin/ntpd/log.c')
-rw-r--r-- | usr.sbin/ntpd/log.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/ntpd/log.c b/usr.sbin/ntpd/log.c index 59f69282fee..c297efe739d 100644 --- a/usr.sbin/ntpd/log.c +++ b/usr.sbin/ntpd/log.c @@ -1,4 +1,4 @@ -/* $OpenBSD: log.c,v 1.7 2005/03/31 12:14:01 henning Exp $ */ +/* $OpenBSD: log.c,v 1.8 2007/08/22 21:04:30 ckuethe Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -27,6 +27,7 @@ #include "ntpd.h" int debug; +extern int debugsyslog; void logit(int, const char *, ...); @@ -122,7 +123,7 @@ log_debug(const char *emsg, ...) { va_list ap; - if (debug) { + if (debug || debugsyslog) { va_start(ap, emsg); vlog(LOG_DEBUG, emsg, ap); va_end(ap); |