The delete_module.c (LD_PRELOAD module) prints the result of the
TC_DELETE_MODULE_RETCODES parsing. At the same time the init_module.c
(and it's variant) don't bother.
Glancing throughout, no other test uses LOG so let's drop the logging
allowing us to garbage collect (hide really) the potentially conflicting
macros.
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Link: https://github.com/kmod-project/kmod/pull/450
Signed-off-by: Lucas De Marchi <ldemarchi@kernel.org>
static void init_retcodes(void)
{
const char *s;
- struct mod *mod;
if (!need_init)
return;
}
parse_retcodes(&modules, s);
-
- for (mod = modules; mod != NULL; mod = mod->next) {
- LOG("Added module to test delete_module:\n");
- LOG("\tname=%s ret=%d errcode=%d\n", mod->name, mod->ret, mod->errcode);
- }
}
static int remove_directory(const char *path)