[Mesa-dev] [PATCH] r600g/llvm: Add missing "%s" format string to fprintf.

Tom Stellard tom at stellard.net
Tue Aug 13 19:26:57 PDT 2013


On Sun, Aug 11, 2013 at 07:37:01PM +0200, Jon Severinsson wrote:
> 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>

I've pushed this patch, thanks.

-Tom

> ---
>  src/gallium/drivers/radeon/radeon_llvm_emit.c |    2 +-
>  1 fil ändrad, 1 tillägg(+), 1 borttagning(-)
> 
> diff --git a/src/gallium/drivers/radeon/radeon_llvm_emit.c b/src/gallium/drivers/radeon/radeon_llvm_emit.c
> index 1a4d4fdd..2dd7bf7b 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;
>  	}
> -- 
> 1.7.10.4
> 
> _______________________________________________
> 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