diff --git a/mdk-stage1/modules.c b/mdk-stage1/modules.c index 2140692..f2c72ba 100644 --- a/mdk-stage1/modules.c +++ b/mdk-stage1/modules.c @@ -242,19 +242,25 @@ static enum insmod_return insmod_with_deps(const char * alias, char * options) { kmod_load_resources(ctx); err = kmod_module_new_from_lookup(ctx, alias, &list); - if (err < 0) + if (err < 0) { + fprintf(stderr, "Error: kmod_module_new_from_lookup(%s) failed!\n", alias); goto exit; + } // No module found... - if (list == NULL) + if (list == NULL) { + fputs("Error: no module list found!\n", stderr); goto exit; + } // filter through blacklist struct kmod_list *filtered = NULL; err = kmod_module_apply_filter(ctx, KMOD_FILTER_BLACKLIST, list, &filtered); kmod_module_unref_list(list); - if (err < 0) + if (err < 0) { + fputs("Error: applying blacklist failed!\n", stderr); goto exit; + } list = filtered; kmod_list_foreach(l, list) {