From 91701f83035c0d67d1ab917e0f6b73f91e8583d4 Mon Sep 17 00:00:00 2001 From: Giovanni Mascellani Date: Sat, 19 Oct 2024 21:00:47 +0200 Subject: [PATCH] vkd3d-shader: Warn instead of erroring out when failing to dump a shader. It's a debug operation and shouldn't be considered fatal, even for development workflows. --- libs/vkd3d-shader/vkd3d_shader_main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libs/vkd3d-shader/vkd3d_shader_main.c b/libs/vkd3d-shader/vkd3d_shader_main.c index 694dfa6f..80447f75 100644 --- a/libs/vkd3d-shader/vkd3d_shader_main.c +++ b/libs/vkd3d-shader/vkd3d_shader_main.c @@ -489,13 +489,13 @@ static void vkd3d_shader_dump_shader(const struct shader_dump_data *dump_data, if ((f = fopen(filename, "wb"))) { if (fwrite(data, 1, size, f) != size) - ERR("Failed to write shader to %s.\n", filename); + WARN("Failed to write shader to %s.\n", filename); if (fclose(f)) - ERR("Failed to close stream %s.\n", filename); + WARN("Failed to close stream %s.\n", filename); } else { - ERR("Failed to open %s for dumping shader.\n", filename); + WARN("Failed to open %s for dumping shader.\n", filename); } }