[Mesa-dev] [PATCH] radeon/llvm: fix compile error with -Werror=format-security

Tom Stellard tom at stellard.net
Tue Aug 13 19:27:44 PDT 2013


On Tue, Aug 13, 2013 at 06:25:28PM +0200, Maarten Lankhorst wrote:
> Signed-off-by: Maarten Lankhorst <maarten.lankhorst at canonical.com>

An identical patch was sent to the list a few days ago, and I've just
pushed it now.

-Tom

> ---
> 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;
>  	}
> 
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev


More information about the mesa-dev mailing list