From 9701326d42aa236e8e25156e06a4df03cdecacaf Mon Sep 17 00:00:00 2001 From: Joerg Wunsch Date: Mon, 6 Oct 1997 20:37:01 +0000 Subject: [PATCH] Since i've just touched , thereby causing a large part of the system to be rebuilt anyway, this is a good time to introduce LOG_NTP. The reasoning for a separate facility is that xntpd can sometimes cause exaggerative log message at high prioritites which are, depending on your environment and available clock sources, not necessarily as important as other LOG_DAEMON messages. However, they used to clutter log files and system console in the existing setup. Note that this situation could not be resolved using the !xntpd option (think about it). xntpd(8) is supposed to automatically pick up the change, it had already all necessary #ifdef's. The chosen value does, as far as my inquiries yielded, not clash with any other operating system. --- sys/sys/syslog.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/sys/sys/syslog.h b/sys/sys/syslog.h index 4f3bbce471e..309b6f742fd 100644 --- a/sys/sys/syslog.h +++ b/sys/sys/syslog.h @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)syslog.h 8.1 (Berkeley) 6/2/93 - * $Id: syslog.h,v 1.13 1997/03/20 16:28:27 jdp Exp $ + * $Id: syslog.h,v 1.14 1997/10/06 18:20:23 joerg Exp $ */ #ifndef _SYS_SYSLOG_H_ @@ -101,7 +101,11 @@ CODE prioritynames[] = { #define LOG_UUCP (8<<3) /* UUCP subsystem */ #define LOG_CRON (9<<3) /* clock daemon */ #define LOG_AUTHPRIV (10<<3) /* security/authorization messages (private) */ + /* Facility #10 clashes in DEC UNIX, where */ + /* it's defined as LOG_MEGASAFE for AdvFS */ + /* event logging. */ #define LOG_FTP (11<<3) /* ftp daemon */ +#define LOG_NTP (12<<3) /* NTP subsystem */ /* other codes through 15 reserved for system use */ #define LOG_LOCAL0 (16<<3) /* reserved for local use */ @@ -130,6 +134,7 @@ CODE facilitynames[] = { { "mail", LOG_MAIL, }, { "mark", INTERNAL_MARK, }, /* INTERNAL */ { "news", LOG_NEWS, }, + { "ntp", LOG_NTP, }, { "security", LOG_AUTH, }, /* DEPRECATED */ { "syslog", LOG_SYSLOG, }, { "user", LOG_USER, },