summaryrefslogtreecommitdiff
path: root/misc/sys/syslog.h
diff options
context:
space:
mode:
Diffstat (limited to 'misc/sys/syslog.h')
-rw-r--r--misc/sys/syslog.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/misc/sys/syslog.h b/misc/sys/syslog.h
index a2b720909a..940ee2dec3 100644
--- a/misc/sys/syslog.h
+++ b/misc/sys/syslog.h
@@ -179,12 +179,13 @@ extern void openlog (__const char *__ident, int __option, int __facility)
extern int setlogmask (int __mask) __THROW;
/* Generate a log message using FMT string and option arguments. */
-extern void syslog (int __pri, __const char *__fmt, ...) __THROW;
+extern void syslog (int __pri, __const char *__fmt, ...) __THROW
+ __attribute__ ((__format__(__printf__, 2, 3)));
#ifdef __USE_BSD
/* Generate a log message using FMT and using arguments pointed to by AP. */
extern void vsyslog (int __pri, __const char *__fmt, __gnuc_va_list __ap)
- __THROW;
+ __THROW __attribute__ ((__format__(__printf__, 2, 0)));
#endif
__END_DECLS