mirror of
https://git.kernel.org/pub/scm/utils/kernel/kmod/kmod.git
synced 2024-11-26 21:33:42 +08:00
libkmod, tools: Fix format specifiers
Use %zu for size_t, not %zd which would be for ssize_t. Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org> Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com> Link: https://github.com/kmod-project/kmod/pull/248 Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
This commit is contained in:
parent
213508a611
commit
3f8f288020
@ -654,7 +654,7 @@ static int elf_strip_vermagic(const struct kmod_elf *elf, uint8_t *changed)
|
||||
off = (const uint8_t *)s - elf->memory;
|
||||
|
||||
len = strlen(s);
|
||||
ELFDBG(elf, "clear .modinfo vermagic \"%s\" (%zd bytes)\n", s, len);
|
||||
ELFDBG(elf, "clear .modinfo vermagic \"%s\" (%zu bytes)\n", s, len);
|
||||
memset(changed + off, '\0', len);
|
||||
return 0;
|
||||
}
|
||||
@ -991,7 +991,7 @@ int kmod_elf_get_dependency_symbols(const struct kmod_elf *elf,
|
||||
if (versionslen % verlen != 0) {
|
||||
ELFDBG(elf,
|
||||
"unexpected __versions of length %" PRIu64
|
||||
", not multiple of %zd as expected.\n",
|
||||
", not multiple of %zu as expected.\n",
|
||||
versionslen, verlen);
|
||||
ver_off = 0;
|
||||
versionslen = 0;
|
||||
|
@ -1604,7 +1604,7 @@ static int depmod_load_modules(struct depmod *depmod)
|
||||
{
|
||||
struct mod **itr, **itr_end;
|
||||
|
||||
DBG("load symbols (%zd modules)\n", depmod->modules.count);
|
||||
DBG("load symbols (%zu modules)\n", depmod->modules.count);
|
||||
|
||||
itr = (struct mod **)depmod->modules.array;
|
||||
itr_end = itr + depmod->modules.count;
|
||||
@ -1659,7 +1659,7 @@ load_info:
|
||||
mod->kmod = NULL;
|
||||
}
|
||||
|
||||
DBG("loaded symbols (%zd modules, %u symbols)\n", depmod->modules.count,
|
||||
DBG("loaded symbols (%zu modules, %u symbols)\n", depmod->modules.count,
|
||||
hash_get_count(depmod->symbols));
|
||||
|
||||
return 0;
|
||||
@ -1709,7 +1709,7 @@ static int depmod_load_dependencies(struct depmod *depmod)
|
||||
struct mod **itr, **itr_end;
|
||||
int ret = 0;
|
||||
|
||||
DBG("load dependencies (%zd modules, %u symbols)\n", depmod->modules.count,
|
||||
DBG("load dependencies (%zu modules, %u symbols)\n", depmod->modules.count,
|
||||
hash_get_count(depmod->symbols));
|
||||
|
||||
itr = (struct mod **)depmod->modules.array;
|
||||
@ -1728,7 +1728,7 @@ static int depmod_load_dependencies(struct depmod *depmod)
|
||||
ret = err;
|
||||
}
|
||||
|
||||
DBG("loaded dependencies (%zd modules, %u symbols)\n", depmod->modules.count,
|
||||
DBG("loaded dependencies (%zu modules, %u symbols)\n", depmod->modules.count,
|
||||
hash_get_count(depmod->symbols));
|
||||
|
||||
return ret;
|
||||
|
Loading…
Reference in New Issue
Block a user