From e29aef80350b5ee4bf989443acf553f5f295df4c Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Tue, 10 Dec 2019 20:42:15 -0800 Subject: Fix format compiler warnings This also allows the compiler to check these at compile time. --- src/common.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/common.h') diff --git a/src/common.h b/src/common.h index d943568..af46737 100644 --- a/src/common.h +++ b/src/common.h @@ -118,8 +118,11 @@ extern struct idevicerestore_mode_t idevicerestore_modes[]; extern int idevicerestore_debug; +__attribute__((format(printf, 1, 2))) void info(const char* format, ...); +__attribute__((format(printf, 1, 2))) void error(const char* format, ...); +__attribute__((format(printf, 1, 2))) void debug(const char* format, ...); void debug_plist(plist_t plist); -- cgit v1.1-32-gdbae