Currently we'll print "Module foo is in use by:" to syslog, while the
modules themselves will end up in strerr.
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Link: https://github.com/kmod-project/kmod/pull/138
Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
kmod_list_foreach(itr, holders) {
struct kmod_module *hm = kmod_module_get_module(itr);
- fprintf(stderr, " %s", kmod_module_get_name(hm));
+ ERR(" %s", kmod_module_get_name(hm));
kmod_module_unref(hm);
}
- fputc('\n', stderr);
+ ERR("\n");
kmod_module_unref_list(holders);
return -EBUSY;