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:
parent
5fc5bc7d44
commit
603d9ed456
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue