ilo: fix a compile error with -Werror=format-security
authorChia-I Wu <olvaffe@gmail.com>
Fri, 12 Sep 2014 01:44:44 +0000 (09:44 +0800)
committerChia-I Wu <olvaffe@gmail.com>
Fri, 12 Sep 2014 01:45:42 +0000 (09:45 +0800)
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=83777

src/gallium/drivers/ilo/shader/toy_compiler_disasm.c

index a40d0cdb84f1aec5e66cdfe13c38f57eec5f2cb9..63fc5e49ade2e4c33d41dfb012fa1e402719ffa6 100644 (file)
@@ -1017,7 +1017,7 @@ disasm_printer_add_operand(struct disasm_printer *printer,
 
    name = disasm_inst_file(inst, operand, &multi_regs);
    if (!multi_regs) {
-      disasm_printer_add(printer, name);
+      disasm_printer_add(printer, "%s", name);
       return;
    }