Mesa (master): vdpau: Add missing printf format specifier.

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Fri Nov 13 23:41:54 UTC 2020


Module: Mesa
Branch: master
Commit: 3fe5c13d71b831b42798755a3ba983b5de6d1563
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=3fe5c13d71b831b42798755a3ba983b5de6d1563

Author: Vinson Lee <vlee at freedesktop.org>
Date:   Fri Oct 16 15:41:12 2020 -0700

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 <vlee at freedesktop.org>
Reviewed-by: Leo Liu <leo.liu at amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7200>

---

 src/gallium/frontends/vdpau/mixer.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;
    }
 



More information about the mesa-commit mailing list