summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorAlexander Bluhm <bluhm@cvs.openbsd.org>2017-04-06 14:55:44 +0000
committerAlexander Bluhm <bluhm@cvs.openbsd.org>2017-04-06 14:55:44 +0000
commit61602b098095a046e14d9632a898540daec1d151 (patch)
treeb411ddf4e04d1f094cbfc85567d617e3a817eac2 /usr.sbin
parent0556aba597286b6457464caacee2c35959748225 (diff)
Add the LOG_SYSLOG facility to local messages.
OK millert@
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/syslogd/log.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/syslogd/log.c b/usr.sbin/syslogd/log.c
index dc5bbccf82e..7de0fc7164a 100644
--- a/usr.sbin/syslogd/log.c
+++ b/usr.sbin/syslogd/log.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: log.c,v 1.2 2017/04/05 11:31:45 bluhm Exp $ */
+/* $OpenBSD: log.c,v 1.3 2017/04/06 14:55:43 bluhm Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -109,7 +109,7 @@ vlog(int pri, const char *fmt, va_list ap)
fprintf(stderr, "%s\n", ebuf);
fflush(stderr);
} else
- vlogmsg(pri, log_procname, fmt, ap);
+ vlogmsg(facility|pri, log_procname, fmt, ap);
errno = saved_errno;
}