xkb: fix printf conversion error on Windows

> ../xkb/xkb.c: In function ‘_XkbSetMapCheckLength’:
> ../xkb/xkb.c:2440:53: warning: unknown conversion type character ‘z’ in format [-Wformat=]
>  2440 |     ErrorF("[xkb] BOGUS LENGTH in SetMap: expected %zd got %zd\n", len, req_len);
>       |                                                     ^
> ../xkb/xkb.c:2440:61: warning: unknown conversion type character ‘z’ in format [-Wformat=]
>  2440 |     ErrorF("[xkb] BOGUS LENGTH in SetMap: expected %zd got %zd\n", len, req_len);
>       |                                                             ^
> ../xkb/xkb.c:2440:12: warning: too many arguments for format [-Wformat-extra-args]
>  2440 |     ErrorF("[xkb] BOGUS LENGTH in SetMap: expected %zd got %zd\n", len, req_len);
>       |            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
Enrico Weigelt, metux IT consult 2025-04-03 10:41:13 +02:00
parent 5fc5bc7d44
commit 603d9ed456

View File

@ -2463,7 +2463,8 @@ _XkbSetMapCheckLength(xkbSetMapReq *req)
if (len == req_len) if (len == req_len)
return Success; return Success;
bad: bad:
ErrorF("[xkb] BOGUS LENGTH in SetMap: expected %zd got %zd\n", len, req_len); ErrorF("[xkb] BOGUS LENGTH in SetMap: expected %lu got %lu\n",
(unsigned long int)len, (unsigned long int)req_len);
return BadLength; return BadLength;
} }