Module Name: src
Committed By: christos
Date: Fri Jan 12 17:54:36 UTC 2018
Modified Files:
src/usr.sbin/autofs: log.c
Log Message:
missing printflike
To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/usr.sbin/autofs/log.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.sbin/autofs/log.c
diff -u src/usr.sbin/autofs/log.c:1.1 src/usr.sbin/autofs/log.c:1.2
--- src/usr.sbin/autofs/log.c:1.1 Mon Jan 8 22:31:15 2018
+++ src/usr.sbin/autofs/log.c Fri Jan 12 12:54:36 2018
@@ -1,4 +1,4 @@
-/* $NetBSD: log.c,v 1.1 2018/01/09 03:31:15 christos Exp $ */
+/* $NetBSD: log.c,v 1.2 2018/01/12 17:54:36 christos Exp $ */
/*-
* Copyright (c) 2017 The NetBSD Foundation, Inc.
@@ -35,7 +35,7 @@
*
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: log.c,v 1.1 2018/01/09 03:31:15 christos Exp $");
+__RCSID("$NetBSD: log.c,v 1.2 2018/01/12 17:54:36 christos Exp $");
#include <errno.h>
#include <stdarg.h>
@@ -89,7 +89,7 @@ log_set_peer_addr(const char *addr)
peer_addr = checked_strdup(addr);
}
-static void
+static __printflike(3, 0) void
log_common(int priority, int log_errno, const char *fmt, va_list ap)
{
static char msgbuf[MSGBUF_LEN];