From 44b356015fe160d28c3c5b333a764d4a9cc046d6 Mon Sep 17 00:00:00 2001 From: Kirk McKusick Date: Fri, 15 Nov 1991 05:44:46 -0800 Subject: [PATCH] add debugging for syslog messages SCCS-vsn: sbin/mountd/mountd.c 5.16 --- usr/src/sbin/mountd/mountd.c | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/usr/src/sbin/mountd/mountd.c b/usr/src/sbin/mountd/mountd.c index faa79cbe8a..a00e922eae 100644 --- a/usr/src/sbin/mountd/mountd.c +++ b/usr/src/sbin/mountd/mountd.c @@ -15,7 +15,7 @@ char copyright[] = #endif not lint #ifndef lint -static char sccsid[] = "@(#)mountd.c 5.15 (Berkeley) %G%"; +static char sccsid[] = "@(#)mountd.c 5.16 (Berkeley) %G%"; #endif not lint #include @@ -129,6 +129,8 @@ extern int errno; struct al_mnt *al_head = (struct al_mnt *)0; #ifdef DEBUG int debug = 1; +void SYSLOG __P((int, const char *, ...)); +#define syslog SYSLOG #else int debug = 0; #endif @@ -1477,3 +1479,15 @@ out:; (void) close(d); return 0; } + +#ifdef DEBUG +void +SYSLOG(int pri, const char *fmt, ...) +{ + va_list ap; + + va_start(ap, fmt); + vfprintf(stderr, fmt, ap); + va_end(ap); +} +#endif /* DEBUG */ -- 2.20.1