Mesa (9.2): radeon/llvm: Add missing "%s" format string to fprintf.

Maarten Lankhorst mlankhorst at kemper.freedesktop.org
Wed Aug 14 09:21:48 UTC 2013


Module: Mesa
Branch: 9.2
Commit: 33b581f6f6d4e5aab65983f24d06b1dd56882f37
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=33b581f6f6d4e5aab65983f24d06b1dd56882f37

Author: Jon Severinsson <jon at severinsson.net>
Date:   Sun Aug 11 19:37:01 2013 +0200

radeon/llvm: Add missing "%s" format string to fprintf.

This fixes a compilation warning with -Wformat-security.

CC: "9.2" <mesa-stable at lists.freedesktop.org>

Reviewed-by: Tom Stellard <thomas.stellard at amd.com>
(cherry picked from commit 9298f537a72dc2323898e91c40894f55e3c4754a)

---

 src/gallium/drivers/radeon/radeon_llvm_emit.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/gallium/drivers/radeon/radeon_llvm_emit.c b/src/gallium/drivers/radeon/radeon_llvm_emit.c
index 1a4d4fd..2dd7bf7 100644
--- a/src/gallium/drivers/radeon/radeon_llvm_emit.c
+++ b/src/gallium/drivers/radeon/radeon_llvm_emit.c
@@ -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;
 	}




More information about the mesa-commit mailing list