diff options
Diffstat (limited to 'lib/log.h')
-rw-r--r-- | lib/log.h | 8 |
1 files changed, 1 insertions, 7 deletions
@@ -26,6 +26,7 @@ #define _ZEBRA_LOG_H #include <syslog.h> +#include <stdio.h> #include "vargs.h" #include "pthread_safe.h" @@ -109,13 +110,6 @@ extern struct zlog *openzlog (const char *progname, zlog_proto_t protocol, /* Close zlog function. */ extern void closezlog (struct zlog *zl); -/* GCC have printf type attribute check. */ -#ifdef __GNUC__ -#define PRINTF_ATTRIBUTE(a,b) __attribute__ ((__format__ (__printf__, a, b))) -#else -#define PRINTF_ATTRIBUTE(a,b) -#endif /* __GNUC__ */ - /* Generic function for zlog. */ extern void zlog (struct zlog *zl, int priority, const char *format, ...) PRINTF_ATTRIBUTE(3, 4); |