From 62657471c8e5154d27fcef23b0864fee104adb27 Mon Sep 17 00:00:00 2001 From: Pierre-Eric Pelloux-Prayer Date: Thu, 19 Jun 2025 10:20:50 +0200 Subject: [PATCH] egl: cast printf argument to the expected type MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reported by static analysis. Reviewed-by: Marek Olšák Reviewed-by: Ian Romanick Part-of: --- src/egl/main/eglconfigdebug.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/egl/main/eglconfigdebug.c b/src/egl/main/eglconfigdebug.c index 7cca37605fd..ee963f211eb 100644 --- a/src/egl/main/eglconfigdebug.c +++ b/src/egl/main/eglconfigdebug.c @@ -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]);