mirror of
https://github.com/X11Libre/xserver.git
synced 2026-01-26 14:03:17 +00:00
xext: xvdisp: fix printf format
> ../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 <info@metux.net>
This commit is contained in:
parent
ceeabba033
commit
7b15c8a9b4
@ -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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user