r300g: Remove extra printf format specifiers.
authorVinson Lee <vlee@freedesktop.org>
Sat, 30 May 2020 00:13:35 +0000 (17:13 -0700)
committerVinson Lee <vlee@freedesktop.org>
Sat, 30 May 2020 21:28:01 +0000 (14:28 -0700)
Fix warning reported by Coverity Scan.
Missing argument to printf format specifier (PRINTF_ARGS)
missing_argument: No argument for format specifier %s.

Fixes: 04c1536bf7ab ("r300g: rasterizer debug logging")
Fixes: 85efb2fff0d4 ("r300g: try to use color varyings for texcoords if max texcoord limit is exceeded")
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5274>

src/gallium/drivers/r300/r300_state_derived.c

index bae669e78cb16b26f87295b0610788f508832dd8..848bbd392bcfcae740485692435ab221b8cfee8b 100644 (file)
@@ -376,7 +376,7 @@ static void r300_update_rs_block(struct r300_context *r300)
             if (fs_inputs->color[i] != ATTR_UNUSED) {
                 fp_offset++;
 
-                DBG(r300, DBG_RS, "r300: FS input color %i unassigned%s.\n",
+                DBG(r300, DBG_RS, "r300: FS input color %i unassigned.\n",
                     i);
             }
         }
@@ -474,7 +474,7 @@ static void r300_update_rs_block(struct r300_context *r300)
                if (fs_inputs->generic[i] != ATTR_UNUSED) {
                    fp_offset++;
 
-                   DBG(r300, DBG_RS, "r300: FS input generic %i unassigned%s.\n", i);
+                   DBG(r300, DBG_RS, "r300: FS input generic %i unassigned.\n", i);
                }
            }
        }