From 7b15c8a9b4cfceafcf2091a594d55bcc36852dcb Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Wed, 10 Dec 2025 16:34:33 +0100 Subject: [PATCH] xext: xvdisp: fix printf format MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit > ../Xext/xvdisp.c: In function ‘ProcXvListImageFormats’: > ../Xext/xvdisp.c:1017:81: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 3 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=] > 1017 | LogMessage(X_WARNING, "ProcXvListImageFormats() payload_len mismatch: %ld but shoud be %d\n", > | ~~^ > | | > | long int > | %d > 1018 | rpcbuf.wpos, (pPort->pAdaptor->nImages*sz_xvImageFormatInfo)); > | ~~~~~~~~~~~ > | | > | size_t {aka unsigned int} Signed-off-by: Enrico Weigelt, metux IT consult --- Xext/xvdisp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Xext/xvdisp.c b/Xext/xvdisp.c index 33a7c194c..65d33446c 100644 --- a/Xext/xvdisp.c +++ b/Xext/xvdisp.c @@ -1014,8 +1014,8 @@ ProcXvListImageFormats(ClientPtr client) /* use rpc.wpos here, in order to get how much we've really written */ if (rpcbuf.wpos != (pPort->pAdaptor->nImages*sz_xvImageFormatInfo)) - LogMessage(X_WARNING, "ProcXvListImageFormats() payload_len mismatch: %ld but shoud be %d\n", - rpcbuf.wpos, (pPort->pAdaptor->nImages*sz_xvImageFormatInfo)); + LogMessage(X_WARNING, "ProcXvListImageFormats() payload_len mismatch: %llu but shoud be %d\n", + (long long unsigned)rpcbuf.wpos, (pPort->pAdaptor->nImages*sz_xvImageFormatInfo)); xvListImageFormatsReply reply = { .num_formats = pPort->pAdaptor->nImages,