[PATCH 5/8] util: use gnu_printf format attribute

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



From: Marc-André Lureau <marcandre.lureau@xxxxxxxxxx>

Fix mingw cross-compilation: the use of "%z" format and other requires
mingw ansi stdio.

Signed-off-by: Marc-André Lureau <marcandre.lureau@xxxxxxxxxx>
---
 util.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/util.h b/util.h
index ca5cb52..347b305 100644
--- a/util.h
+++ b/util.h
@@ -12,7 +12,7 @@
  */
 
 #ifdef __GNUC__
-#define PRINTF(i, j)	__attribute__((format (printf, i, j)))
+#define PRINTF(i, j)	__attribute__((format (gnu_printf, i, j)))
 #define NORETURN	__attribute__((noreturn))
 #else
 #define PRINTF(i, j)
-- 
2.23.0




[Index of Archives]     [Device Tree]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux