diff options
Diffstat (limited to 'src/logging.h')
-rw-r--r-- | src/logging.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/logging.h b/src/logging.h index 12c9b00..4ad66bc 100644 --- a/src/logging.h +++ b/src/logging.h @@ -19,8 +19,9 @@ #ifndef LOGGING_H #define LOGGING_H -void debug(const char *fmt, ...); -void warn(const char *fmt, ...); -void err(int status, const char *fmt, ...); +void debug(const char *fmt, ...) __attribute__((__format__(printf, 1, 2))); +void warn(const char *fmt, ...) __attribute__((__format__(printf, 1, 2))); +void err(int status, const char *fmt, ...) + __attribute__((__format__(printf, 2, 3))) __attribute__((__noreturn__)); #endif |