mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 03:44:06 +00:00
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:
@@ -2463,7 +2463,8 @@ _XkbSetMapCheckLength(xkbSetMapReq *req)
|
||||
if (len == req_len)
|
||||
return Success;
|
||||
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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user