i965/vs: include format argument in debug printf
authorTapani Pälli <tapani.palli@intel.com>
Fri, 19 Oct 2012 06:45:20 +0000 (09:45 +0300)
committerChad Versace <chad.versace@linux.intel.com>
Fri, 19 Oct 2012 17:00:19 +0000 (10:00 -0700)
otherwise some compilers will throw error
"error: format not a string literal and no format arguments"

Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
src/mesa/drivers/dri/i965/brw_vec4.cpp

index 9eed5993027de128caeafd5929966cb4afa11763..5c52d3a148cb03bb67c2e09b95bfde74c45aa191 100644 (file)
@@ -891,7 +891,7 @@ vec4_visitor::dump_instruction(vec4_instruction *inst)
       static const char *chans[4] = {"x", "y", "z", "w"};
       printf(".");
       for (int c = 0; c < 4; c++) {
-         printf(chans[BRW_GET_SWZ(inst->src[i].swizzle, c)]);
+         printf("%s", chans[BRW_GET_SWZ(inst->src[i].swizzle, c)]);
       }
 
       if (i < 3)