summaryrefslogtreecommitdiff
path: root/src/msg.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/msg.h')
-rw-r--r--src/msg.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/msg.h b/src/msg.h
index 1188ea9..d580775 100644
--- a/src/msg.h
+++ b/src/msg.h
@@ -23,10 +23,12 @@
#include <stdarg.h>
#include <stdio.h>
-void nv_error_msg(const char*, ...);
-void nv_warning_msg(const char*, ...);
-void nv_info_msg(const char*, const char*, ...);
-void nv_msg(const char*, const char*, ...);
-void nv_msg_preserve_whitespace(const char*, const char*, ...);
+#include "common-utils.h"
+
+void nv_error_msg(const char*, ...) NV_ATTRIBUTE_PRINTF(1, 2);
+void nv_warning_msg(const char*, ...) NV_ATTRIBUTE_PRINTF(1, 2);
+void nv_info_msg(const char*, const char*, ...) NV_ATTRIBUTE_PRINTF(2, 3);
+void nv_msg(const char*, const char*, ...) NV_ATTRIBUTE_PRINTF(2, 3);
+void nv_msg_preserve_whitespace(const char*, const char*, ...) NV_ATTRIBUTE_PRINTF(2, 3);
#endif /* __MSG_H__ */