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: 89b9863252 ("vdpau: Add support for parameters")
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Leo Liu <leo.liu@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7200>
(cherry picked from commit 3fe5c13d71)
This commit is contained in:
Vinson Lee 2020-10-16 15:41:12 -07:00 committed by Dylan Baker
parent 159ded9481
commit b8ddfc0bb7
2 changed files with 2 additions and 2 deletions

View file

@ -967,7 +967,7 @@
"description": "vdpau: Add missing printf format specifier.",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"master_sha": null,
"because_sha": "89b9863252272a7109d468738517a0d68376a909"
},

View file

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