From b5f1979475a661aee58b46818952dc94de5366d7 Mon Sep 17 00:00:00 2001 From: Henri Verbeet Date: Thu, 31 Oct 2024 13:53:21 +0100 Subject: [PATCH] tests/shader_runner: Print "(none)" for an empty caps list in trace_shader_caps(). Like we do in trace_format_cap(). --- tests/shader_runner.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/shader_runner.c b/tests/shader_runner.c index 5a311aae..33a7b801 100644 --- a/tests/shader_runner.c +++ b/tests/shader_runner.c @@ -1723,6 +1723,7 @@ static void trace_tags(const struct shader_runner_caps *caps) static void trace_shader_caps(const bool *caps) { + bool show_none = true; char buffer[80], *p; size_t rem; int rc; @@ -1751,7 +1752,10 @@ static void trace_shader_caps(const bool *caps) } p += rc; rem -= rc; + show_none = false; } + if (show_none) + snprintf(p, rem, " (none)"); trace("%s.\n", buffer); }