egl: cast printf argument to the expected type

Reported by static analysis.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35877>
This commit is contained in:
Pierre-Eric Pelloux-Prayer 2025-06-19 10:20:50 +02:00 committed by Marge Bot
parent 1aaf1f858e
commit 62657471c8

View file

@ -129,7 +129,7 @@ _eglPrintConfig(_EGLConfig *const conf, const int chosenIndex)
/* If one of chosen configs, print its index in the returned config array */
if (chosenIndex >= 0)
_strnAppend(printMsg, sizeof(printMsg), "%*d ", strlen(padding),
_strnAppend(printMsg, sizeof(printMsg), "%*d ", (int)strlen(padding),
chosenIndex);
else
_strnAppend(printMsg, sizeof(printMsg), "%s ", &padding[0]);