radeon/llvm: Add missing "%s" format string to fprintf.
authorJon Severinsson <jon@severinsson.net>
Sun, 11 Aug 2013 17:37:01 +0000 (19:37 +0200)
committerTom Stellard <thomas.stellard@amd.com>
Wed, 14 Aug 2013 02:18:14 +0000 (19:18 -0700)
This fixes a compilation warning with -Wformat-security.

CC: "9.2" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
src/gallium/drivers/radeon/radeon_llvm_emit.c

index 1a4d4fdd22bd9c330467701f77d5ab922f998dc6..2dd7bf7b935973bf6a9536c4fc6728de899bc8e4 100644 (file)
@@ -124,7 +124,7 @@ unsigned radeon_llvm_compile(LLVMModuleRef M, struct radeon_llvm_binary *binary,
        r = LLVMTargetMachineEmitToMemoryBuffer(tm, M, LLVMObjectFile, &err,
                                                                 &out_buffer);
        if (r) {
-               fprintf(stderr, err);
+               fprintf(stderr, "%s", err);
                FREE(err);
                return 1;
        }