diff options
Diffstat (limited to 'kernel/log.h')
-rw-r--r-- | kernel/log.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/kernel/log.h b/kernel/log.h index b4182b5f3..904ba4759 100644 --- a/kernel/log.h +++ b/kernel/log.h @@ -23,9 +23,9 @@ #define LOG_H #include <time.h> -#include <sys/time.h> #ifndef _WIN32 +# include <sys/time.h> # include <sys/resource.h> #endif @@ -51,12 +51,12 @@ extern int log_verbose_level; void logv(const char *format, va_list ap); void logv_header(const char *format, va_list ap); -void logv_error(const char *format, va_list ap) __attribute__ ((noreturn)); -void log(const char *format, ...) __attribute__ ((format (printf, 1, 2))); -void log_header(const char *format, ...) __attribute__ ((format (printf, 1, 2))); -void log_error(const char *format, ...) __attribute__ ((format (printf, 1, 2))) __attribute__ ((noreturn)); -void log_cmd_error(const char *format, ...) __attribute__ ((format (printf, 1, 2))) __attribute__ ((noreturn)); +void logv_error(const char *format, va_list ap) __attribute__((noreturn)); +void log(const char *format, ...) __attribute__((format(printf, 1, 2))); +void log_header(const char *format, ...) __attribute__((format(printf, 1, 2))); +void log_error(const char *format, ...) __attribute__((format(printf, 1, 2))) __attribute__((noreturn)); +void log_cmd_error(const char *format, ...) __attribute__((format(printf, 1, 2))) __attribute__((noreturn)); void log_spacer(); void log_push(); |