From: Eric Anholt Date: Tue, 17 May 2016 21:06:39 +0000 (-0700) Subject: vc4: Fix a -Wformat-security warning. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=24e7e3d3fcecc882c420e60e882675a8e32edce8;p=mesa.git vc4: Fix a -Wformat-security warning. This is apparently enabled as an error in Android builds, and the compiler can't tell that the return value is safe. --- diff --git a/src/gallium/drivers/vc4/vc4_qpu_disasm.c b/src/gallium/drivers/vc4/vc4_qpu_disasm.c index 673c1bba092..d48e753df3d 100644 --- a/src/gallium/drivers/vc4/vc4_qpu_disasm.c +++ b/src/gallium/drivers/vc4/vc4_qpu_disasm.c @@ -346,7 +346,7 @@ print_add_op(uint64_t inst) if (is_mov) fprintf(stderr, "mov"); else - fprintf(stderr, DESC(qpu_add_opcodes, op_add)); + fprintf(stderr, "%s", DESC(qpu_add_opcodes, op_add)); if ((inst & QPU_SF) && op_add != QPU_A_NOP) fprintf(stderr, ".sf");