xwayland: fix int size mismatch
GCC reports: [1/2] Compiling C object hw/xwayland/Xwayland.p/xwayland.c.o ../hw/xwayland/xwayland.c: In function ‘try_raising_nofile_limit’: ../hw/xwayland/xwayland.c:161:72: warning: format ‘%li’ expects argument of type ‘long int’, but argument 4 has type ‘rlim_t’ {aka ‘long long unsigned int’} [-Wformat=] 161 | LogMessageVerb(X_INFO, 3, "Raising the file descriptors limit to %li\n", | ~~^ | | | long int | %lli 162 | rlim.rlim_max); | ~~~~~~~~~~~~~ | | | rlim_t {aka long long unsigned int} Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1257>
This commit is contained in:
parent
37b9b9a854
commit
7a37e5df12
|
@ -158,9 +158,9 @@ try_raising_nofile_limit(void)
|
|||
return;
|
||||
}
|
||||
|
||||
LogMessageVerb(X_INFO, 3, "Raising the file descriptors limit to %li\n",
|
||||
rlim.rlim_max);
|
||||
#endif
|
||||
LogMessageVerb(X_INFO, 3, "Raising the file descriptors limit to %llu\n",
|
||||
(long long unsigned int) rlim.rlim_max);
|
||||
#endif /* RLIMIT_NOFILE */
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
Loading…
Reference in New Issue