Source-Changes-HG archive

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

[src/trunk]: src/external/bsd/am-utils/dist/include use syslog attribute



details:   https://anonhg.NetBSD.org/src/rev/76656dd8c730
branches:  trunk
changeset: 811158:76656dd8c730
user:      christos <christos%NetBSD.org@localhost>
date:      Wed Oct 14 16:00:17 2015 +0000

description:
use syslog attribute

diffstat:

 external/bsd/am-utils/dist/include/am_utils.h |  10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)

diffs (38 lines):

diff -r aeed7b920906 -r 76656dd8c730 external/bsd/am-utils/dist/include/am_utils.h
--- a/external/bsd/am-utils/dist/include/am_utils.h     Wed Oct 14 15:58:46 2015 +0000
+++ b/external/bsd/am-utils/dist/include/am_utils.h     Wed Oct 14 16:00:17 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: am_utils.h,v 1.1.1.3 2015/01/17 16:34:18 christos Exp $        */
+/*     $NetBSD: am_utils.h,v 1.2 2015/10/14 16:00:17 christos Exp $    */
 
 /*
  * Copyright (c) 1997-2014 Erez Zadok
@@ -53,6 +53,10 @@
 /*** MACROS                                                            ***/
 /**************************************************************************/
 
+#if !defined(__syslog_attribute__) && !defined(__syslog__)
+#define __syslog__ __printf__
+#endif
+
 /*
  * General macros.
  */
@@ -324,7 +328,7 @@
 extern void going_down(int);
 extern void mnt_free(mntent_t *);
 extern void plog(int, const char *,...)
-     __attribute__ ((__format__ (__printf__, 2, 3)));
+     __attribute__ ((__format__ (__syslog__, 2, 3)));
 extern void rmdirs(char *);
 extern void rpc_msg_init(struct rpc_msg *, u_long, u_long, u_long);
 extern void set_amd_program_number(u_long program);
@@ -489,7 +493,7 @@
 extern void print_nfs_args(const void *, u_long nfs_version);
 extern int debug_option (char *opt);
 extern void dplog(const char *fmt, ...)
-     __attribute__ ((__format__ (__printf__, 1, 2)));
+     __attribute__ ((__format__ (__syslog__, 1, 2)));
 
 #else /* not DEBUG */
 



Home | Main Index | Thread Index | Old Index