[Piglit] [PATCH] glx-query-drawable: Fix printf format warning.

Vinson Lee vlee at vmware.com
Tue Nov 29 12:21:45 PST 2011


Fixes this GCC warning.
glx-query-drawable.c: In function ‘usage_error’:
glx-query-drawable.c:51: warning: format not a string literal and no format arguments

Signed-off-by: Vinson Lee <vlee at vmware.com>
---
 tests/glx/glx-query-drawable.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/tests/glx/glx-query-drawable.c b/tests/glx/glx-query-drawable.c
index 12ac5fe..62ed47e 100644
--- a/tests/glx/glx-query-drawable.c
+++ b/tests/glx/glx-query-drawable.c
@@ -48,7 +48,7 @@ usage_error()
 	"    glx-query-drawable [-auto] --attr=GLX_WIDTH\n"
 	"    glx-query-drawable [-auto] --attr=GLX_HEIGHT\n"
 	"        Call glXQueryDrawable() with the given attribute.\n";
-	printf(message);
+	printf("%s", message);
 	piglit_report_result(PIGLIT_FAIL);
 }
 
-- 
1.7.1



More information about the Piglit mailing list