summaryrefslogtreecommitdiffstats
path: root/src/amd
diff options
context:
space:
mode:
authorAlex Smith <[email protected]>2017-10-30 08:38:14 +0000
committerSamuel Pitoiset <[email protected]>2017-10-30 10:58:56 +0100
commit134a40d2a67fa8e76b0b101e2fcaa63e80e23056 (patch)
tree7df7d62ed1b659037d8601c159d2532ddcbe1eb6 /src/amd
parent1e84e53712aed4892fbaf98e6f26ffdf76f06165 (diff)
radv: Fix -Wformat-security issue
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=103513 Fixes: de889794134e ("radv: Implement VK_AMD_shader_info") Signed-off-by: Alex Smith <[email protected]> Reviewed-by: Bas Nieuwenhuizen <[email protected]> Reviewed-by: Samuel Pitoiset <[email protected]>
Diffstat (limited to 'src/amd')
-rw-r--r--src/amd/vulkan/radv_shader.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/amd/vulkan/radv_shader.c b/src/amd/vulkan/radv_shader.c
index c9edb28ba24..9162612284c 100644
--- a/src/amd/vulkan/radv_shader.c
+++ b/src/amd/vulkan/radv_shader.c
@@ -680,7 +680,7 @@ radv_shader_dump_stats(struct radv_device *device,
generate_shader_stats(device, variant, stage, buf);
fprintf(file, "\n%s:\n", radv_get_shader_name(variant, stage));
- fprintf(file, buf->buf);
+ fprintf(file, "%s", buf->buf);
_mesa_string_buffer_destroy(buf);
}