diff --git a/log/log.c b/log/log.c index 71433d5..79ff35c 100644 --- a/log/log.c +++ b/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/log/log.h b/log/log.h index 3733efa..a7718f0 100644 --- a/log/log.h +++ b/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__ */