Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/bsd/blacklist/bin mark log function as printflike



details:   https://anonhg.NetBSD.org/src/rev/5a7e344599a6
branches:  trunk
changeset: 335835:5a7e344599a6
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Jan 25 22:22:54 2015 +0000

description:
mark log function as printflike

diffstat:

 external/bsd/blacklist/bin/support.h |  8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diffs (22 lines):

diff -r 8a65b4428757 -r 5a7e344599a6 external/bsd/blacklist/bin/support.h
--- a/external/bsd/blacklist/bin/support.h      Sun Jan 25 21:06:04 2015 +0000
+++ b/external/bsd/blacklist/bin/support.h      Sun Jan 25 22:22:54 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: support.h,v 1.4 2015/01/24 06:05:08 christos Exp $     */
+/*     $NetBSD: support.h,v 1.5 2015/01/25 22:22:54 christos Exp $     */
 
 /*-
  * Copyright (c) 2015 The NetBSD Foundation, Inc.
@@ -34,8 +34,10 @@
 __BEGIN_DECLS
 const char *fmttime(char *, size_t, time_t);
 const char *fmtydhms(char *, size_t, time_t);
-void vdlog(int, const char *, va_list);
-void dlog(int, const char *, ...);
+void vdlog(int, const char *, va_list)
+    __attribute__((__format__(__printf__, 2, 0)));
+void dlog(int, const char *, ...)
+    __attribute__((__format__(__printf__, 2, 3)));
 __END_DECLS
 
 #endif /* _SUPPORT_H */



Home | Main Index | Thread Index | Old Index