summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ospfd/log.h
diff options
context:
space:
mode:
authorbenno <benno@openbsd.org>2016-06-06 15:56:22 +0000
committerbenno <benno@openbsd.org>2016-06-06 15:56:22 +0000
commit30f31fecfa98adfcd7dc5298f5742466c7cf9698 (patch)
treec118b1e845e0b28f28f1f85b6f14a059dee9fd77 /usr.sbin/ospfd/log.h
parentSpeed up session establishment after config reload. (diff)
downloadwireguard-openbsd-30f31fecfa98adfcd7dc5298f5742466c7cf9698.tar.xz
wireguard-openbsd-30f31fecfa98adfcd7dc5298f5742466c7cf9698.zip
add format attributes to the proper functions and then fix the
warning in rde.c ok stsp@
Diffstat (limited to 'usr.sbin/ospfd/log.h')
-rw-r--r--usr.sbin/ospfd/log.h26
1 files changed, 17 insertions, 9 deletions
diff --git a/usr.sbin/ospfd/log.h b/usr.sbin/ospfd/log.h
index e0034e80324..656afd86a87 100644
--- a/usr.sbin/ospfd/log.h
+++ b/usr.sbin/ospfd/log.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: log.h,v 1.6 2014/11/03 07:40:31 bluhm Exp $ */
+/* $OpenBSD: log.h,v 1.7 2016/06/06 15:56:22 benno Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -23,13 +23,21 @@
void log_init(int);
void log_verbose(int);
-void logit(int, const char *, ...);
-void vlog(int, const char *, va_list);
-void log_warn(const char *, ...);
-void log_warnx(const char *, ...);
-void log_info(const char *, ...);
-void log_debug(const char *, ...);
-void fatal(const char *) __dead;
-void fatalx(const char *) __dead;
+void logit(int, const char *, ...)
+ __attribute__((__format__ (printf, 2, 3)));
+void vlog(int, const char *, va_list)
+ __attribute__((__format__ (printf, 2, 0)));
+void log_warn(const char *, ...)
+ __attribute__((__format__ (printf, 1, 2)));
+void log_warnx(const char *, ...)
+ __attribute__((__format__ (printf, 1, 2)));
+void log_info(const char *, ...)
+ __attribute__((__format__ (printf, 1, 2)));
+void log_debug(const char *, ...)
+ __attribute__((__format__ (printf, 1, 2)));
+void fatal(const char *) __dead
+ __attribute__((__format__ (printf, 1, 0)));
+void fatalx(const char *) __dead
+ __attribute__((__format__ (printf, 1, 0)));
#endif /* _LOG_H_ */