vc4: Fix a -Wformat-security warning.
authorEric Anholt <eric@anholt.net>
Tue, 17 May 2016 21:06:39 +0000 (14:06 -0700)
committerEric Anholt <eric@anholt.net>
Wed, 18 May 2016 01:07:39 +0000 (18:07 -0700)
This is apparently enabled as an error in Android builds, and the compiler
can't tell that the return value is safe.

src/gallium/drivers/vc4/vc4_qpu_disasm.c

index 673c1bb..d48e753 100644 (file)
@@ -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");