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>
This commit is contained in:
Tapani Pälli 2012-10-19 09:45:20 +03:00 committed by Chad Versace
parent c2e37b1d2e
commit f593acd577
1 changed files with 1 additions and 1 deletions

View 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)