mirror of
https://git.kernel.org/pub/scm/utils/kernel/kmod/kmod.git
synced 2024-11-30 15:23:38 +08:00
22c36b7dac
Printing time_t, suseconds_t, useconds_t in 32bits with -D_TIME_BITS=64 leads to the following warning: ../tools/depmod.c:2641:61: warning: format ‘%li’ expects argument of type ‘long int’, but argument 6 has type ‘__suseconds64_t’ {aka ‘long long int’} [-Wformat=] 2641 | snprintf(tmp, sizeof(tmp), "%s.%i.%li.%li", itr->name, getpid(), | ~~^ | | | long int | %lli 2642 | tv.tv_usec, tv.tv_sec); | ~~~~~~~~~~ Paper it over by casting the argument to 64 bits and switching to long long. Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com> |
||
---|---|---|
.. | ||
.gitignore | ||
COPYING | ||
depmod.c | ||
insmod.c | ||
kmod.c | ||
kmod.h | ||
kmod.pc.in | ||
log.c | ||
log.h | ||
lsmod.c | ||
Makefile | ||
modinfo.c | ||
modprobe.c | ||
rmmod.c | ||
static-nodes.c |