From 35c46bcf0b71066725ac82d806e741043f87989c Mon Sep 17 00:00:00 2001 From: Vinson Lee Date: Fri, 16 Oct 2020 15:41:12 -0700 Subject: [PATCH] vdpau: Add missing printf format specifier. Fix defect reported by Coverity Scan. Extra argument to printf format specifier (PRINTF_ARGS) extra_argument: This argument was not used by the format string: vmixer->max_layers. Fixes: 89b986325227 ("vdpau: Add support for parameters") Signed-off-by: Vinson Lee Reviewed-by: Leo Liu Part-of: (cherry picked from commit 3fe5c13d71b831b42798755a3ba983b5de6d1563) --- .pick_status.json | 2 +- src/gallium/frontends/vdpau/mixer.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.pick_status.json b/.pick_status.json index c2dfcfd45b8..171d14dca88 100644 --- a/.pick_status.json +++ b/.pick_status.json @@ -2281,7 +2281,7 @@ "description": "vdpau: Add missing printf format specifier.", "nominated": true, "nomination_type": 1, - "resolution": 0, + "resolution": 1, "master_sha": null, "because_sha": "89b9863252272a7109d468738517a0d68376a909" }, diff --git a/src/gallium/frontends/vdpau/mixer.c b/src/gallium/frontends/vdpau/mixer.c index 98da01d3e4c..8fa0559b6e1 100644 --- a/src/gallium/frontends/vdpau/mixer.c +++ b/src/gallium/frontends/vdpau/mixer.c @@ -143,7 +143,7 @@ vlVdpVideoMixerCreate(VdpDevice device, } ret = VDP_STATUS_INVALID_VALUE; if (vmixer->max_layers > 4) { - VDPAU_MSG(VDPAU_WARN, "[VDPAU] Max layers > 4 not supported\n", vmixer->max_layers); + VDPAU_MSG(VDPAU_WARN, "[VDPAU] Max layers %u > 4 not supported\n", vmixer->max_layers); goto no_params; }