diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2000-06-29 00:02:29 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2000-06-29 00:02:29 +0000 |
commit | b6672e65decb177eb46472fadc0ab109b79b8e66 (patch) | |
tree | ad58430161536490e1ab5501a36fd6b58e385462 /sbin/photurisd/errlog.c | |
parent | 589fe08addb296a3072261891387ccabb9db464d (diff) |
use %s with syslog
Diffstat (limited to 'sbin/photurisd/errlog.c')
-rw-r--r-- | sbin/photurisd/errlog.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/photurisd/errlog.c b/sbin/photurisd/errlog.c index 0fc5a4d2771..1025aa98341 100644 --- a/sbin/photurisd/errlog.c +++ b/sbin/photurisd/errlog.c @@ -31,11 +31,11 @@ */ /* - * $OpenBSD: errlog.c,v 1.1 1998/11/14 23:37:23 deraadt Exp $ + * $OpenBSD: errlog.c,v 1.2 2000/06/29 00:02:28 deraadt Exp $ */ #ifndef lint -static char rcsid[] = "$Id: errlog.c,v 1.1 1998/11/14 23:37:23 deraadt Exp $"; +static char rcsid[] = "$Id: errlog.c,v 1.2 2000/06/29 00:02:28 deraadt Exp $"; #endif #define _ERRLOG_C_ @@ -138,7 +138,7 @@ _log_error(int flag, char *fmt, va_list ap) buffer[LOG_SIZE-1] = '\0'; if (daemon_mode) - syslog(LOG_WARNING, buffer); + syslog(LOG_WARNING, "%s", buffer); else { fprintf(stderr, buffer); if (flag) |