diff --git a/src/log/log.c b/src/log/log.c index 71433d57..79ff35c9 100644 --- a/src/log/log.c +++ b/src/log/log.c @@ -588,7 +588,7 @@ void log_write_direct(int log_id, const char *fmt, ...) now = time(NULL); _lock_logger(); - vsnprintf(line, LOG_MAXLINELEN, fmt, ap); + __vsnprintf(line, LOG_MAXLINELEN, fmt, ap); if (_log_open (log_id)) { int len = create_log_entry (log_id, "", line); diff --git a/src/log/log.h b/src/log/log.h index 3733efab..a7718f01 100644 --- a/src/log/log.h +++ b/src/log/log.h @@ -39,6 +39,6 @@ void log_shutdown(void); void log_write(int log_id, unsigned priority, const char *cat, const char *func, const char *fmt, ...); -void log_write_direct(int log_id, const char *fmt, ...) __attribute__ ((format (printf, 2, 3))); +void log_write_direct(int log_id, const char *fmt, ...); #endif /* __LOG_H__ */