From: Tom Stellard Date: Fri, 20 Apr 2012 13:12:47 +0000 (-0400) Subject: radeon/llvm: Don't print an error message when there is no error X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d7f9b6ce13dcfc4f1d7c84c121d66606f8d05f7b;p=mesa.git 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. --- 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; }