Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/syslogd Format string annotation.



details:   https://anonhg.NetBSD.org/src/rev/44b9f773a833
branches:  trunk
changeset: 336172:44b9f773a833
user:      joerg <joerg%NetBSD.org@localhost>
date:      Sun Feb 15 14:51:57 2015 +0000

description:
Format string annotation.

diffstat:

 usr.sbin/syslogd/syslogd.h |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (19 lines):

diff -r de342c3c8a0a -r 44b9f773a833 usr.sbin/syslogd/syslogd.h
--- a/usr.sbin/syslogd/syslogd.h        Sun Feb 15 11:04:43 2015 +0000
+++ b/usr.sbin/syslogd/syslogd.h        Sun Feb 15 14:51:57 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: syslogd.h,v 1.5 2015/02/10 20:38:15 christos Exp $     */
+/*     $NetBSD: syslogd.h,v 1.6 2015/02/15 14:51:57 joerg Exp $        */
 
 /*-
  * Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -151,7 +151,8 @@
 #ifdef NDEBUG
 #define DPRINTF(x, ...) (void)0
 #else
-void dbprintf(const char *, const char *, size_t, const char *, ...);
+void dbprintf(const char *, const char *, size_t, const char *, ...)
+    __printflike(4, 5);
 #define DPRINTF(x, ...) /*LINTED null effect */(void)(Debug & (x) \
     ? dbprintf(__FILE__, __func__, __LINE__, __VA_ARGS__) : 0)
 #endif



Home | Main Index | Thread Index | Old Index