[Spice-devel] [PATCH xf86-video-qxl 08/13] spiceqxl_io_port: use attribute printf (fix warning)

Alon Levy alevy at redhat.com
Mon Apr 9 10:33:14 PDT 2012


---
 src/spiceqxl_io_port.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/spiceqxl_io_port.c b/src/spiceqxl_io_port.c
index ea02ac1..050e7b9 100644
--- a/src/spiceqxl_io_port.c
+++ b/src/spiceqxl_io_port.c
@@ -58,7 +58,7 @@
 
 static int spiceqxl_io_port_debug_level = -1;
 
-static void dprint(int _level, const char *_fmt, ...)
+static void __attribute__ ((format (printf, 2, 3))) dprint(int _level, const char *_fmt, ...)
 {
     if (spiceqxl_io_port_debug_level == -1) {
         if (getenv("XSPICE_IO_PORT_DEBUG_LEVEL")) {
-- 
1.7.9.3



More information about the Spice-devel mailing list