diff options
Diffstat (limited to 'contrib/librdns/logger.h')
-rw-r--r-- | contrib/librdns/logger.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/contrib/librdns/logger.h b/contrib/librdns/logger.h index f9c33bbe4..80728763e 100644 --- a/contrib/librdns/logger.h +++ b/contrib/librdns/logger.h @@ -26,10 +26,16 @@ #include <stdarg.h> #include "dns_private.h" +#ifdef __GNUC__ +__attribute__((format(printf, 4, 0))) +#endif void rdns_logger_internal (void *log_data, enum rdns_log_level level, const char *function, const char *format, va_list args); +#ifdef __GNUC__ +__attribute__((format(printf, 4, 5))) +#endif void rdns_logger_helper (struct rdns_resolver *resolver, enum rdns_log_level level, const char *function, const char *format, ...); |