From d7f9b6ce13dcfc4f1d7c84c121d66606f8d05f7b Mon Sep 17 00:00:00 2001 From: Tom Stellard Date: Fri, 20 Apr 2012 09:12:47 -0400 Subject: [PATCH] radeon/llvm: Don't print an error message when there is no error A blank line with an empty error message was being printed even when the target lookup succeeded. --- src/gallium/drivers/radeon/radeon_llvm_emit.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/gallium/drivers/radeon/radeon_llvm_emit.cpp b/src/gallium/drivers/radeon/radeon_llvm_emit.cpp index b4825690104..b409cb2175e 100644 --- a/src/gallium/drivers/radeon/radeon_llvm_emit.cpp +++ b/src/gallium/drivers/radeon/radeon_llvm_emit.cpp @@ -81,9 +81,8 @@ radeon_llvm_compile(LLVMModuleRef M, unsigned char ** bytes, #endif std::string err; const Target * AMDGPUTarget = TargetRegistry::lookupTarget("r600", err); - fprintf(stderr, "%s\n", err.c_str()); if(!AMDGPUTarget) { - fprintf(stderr, "Can't find target\n"); + fprintf(stderr, "Can't find target: %s\n", err.c_str()); return 1; } -- 2.30.2