summaryrefslogtreecommitdiff
path: root/libhfcommon
diff options
context:
space:
mode:
Diffstat (limited to 'libhfcommon')
-rw-r--r--libhfcommon/util.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/libhfcommon/util.h b/libhfcommon/util.h
index f8cd1e87..493cbcbd 100644
--- a/libhfcommon/util.h
+++ b/libhfcommon/util.h
@@ -89,7 +89,8 @@ extern void util_rndBuf(uint8_t* buf, size_t sz);
extern uint64_t util_rnd64(void);
-extern int util_ssnprintf(char* str, size_t size, const char* format, ...);
+extern int util_ssnprintf(char* str, size_t size, const char* format, ...)
+ __attribute__((format(printf, 3, 4)));
extern int util_vssnprintf(char* str, size_t size, const char* format, va_list ap);