The KMOD API returns NULL on error and getting the exact means why it
failed is undefined. In practise the errno is set in _some_ of the error
paths, but not all.
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Link: https://github.com/kmod-project/kmod/pull/368
Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
ctx = kmod_new(cfg.dirname, &null_kmod_config);
if (ctx == NULL) {
- CRIT("kmod_new(\"%s\", {NULL}) failed: %m\n", cfg.dirname);
+ CRIT("kmod_new(\"%s\", {NULL}) failed\n", cfg.dirname);
goto cmdline_failed;
}