summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTapani Pälli <tapani.palli@intel.com>2012-10-19 09:45:20 +0300
committerChad Versace <chad.versace@linux.intel.com>2012-10-19 10:00:19 -0700
commitf593acd5778d4fdfa3493bb90c99b52e45667bc0 (patch)
treea97deb1261a54b39262b1585ebb890b21d5efccb
parentc2e37b1d2e1b8014475c7d2698fba317c9082d70 (diff)
downloadexternal_mesa3d-f593acd5778d4fdfa3493bb90c99b52e45667bc0.zip
external_mesa3d-f593acd5778d4fdfa3493bb90c99b52e45667bc0.tar.gz
external_mesa3d-f593acd5778d4fdfa3493bb90c99b52e45667bc0.tar.bz2
i965/vs: include format argument in debug printf
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>
-rw-r--r--src/mesa/drivers/dri/i965/brw_vec4.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_vec4.cpp b/src/mesa/drivers/dri/i965/brw_vec4.cpp
index 9eed599..5c52d3a 100644
--- a/src/mesa/drivers/dri/i965/brw_vec4.cpp
+++ b/src/mesa/drivers/dri/i965/brw_vec4.cpp
@@ -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)