From 01e012dab80850187bed48ea3a0c6a12ed9cb8ba Mon Sep 17 00:00:00 2001 From: Erik Faye-Lund Date: Mon, 29 Mar 2021 13:44:50 +0200 Subject: [PATCH] compiler/glsl: correct the number of string-arguments This format-string seems to have been incorrect since it's inception. But there's also been commits that have both forgotten to add and remove flags as appropriate as well. Let's correct the format-list. This was done by counting by hand. A better solution for the long-term is coming in a future commit. Reviewed-by: Matt Turner Reviewed-by: Ian Romanick Part-of: --- src/compiler/glsl/ast_type.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/compiler/glsl/ast_type.cpp b/src/compiler/glsl/ast_type.cpp index 8026302f0ac..4e09cc041ad 100644 --- a/src/compiler/glsl/ast_type.cpp +++ b/src/compiler/glsl/ast_type.cpp @@ -835,7 +835,8 @@ ast_type_qualifier::validate_flags(YYLTYPE *loc, "%s '%s':" "%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s" "%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s" - "%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s\n", + "%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s" + "%s%s%s%s%s%s%s\n", message, name, bad.flags.q.invariant ? " invariant" : "", bad.flags.q.precise ? " precise" : "",