mirror of
https://github.com/troglobit/finit.git
synced 2026-10-24 11:54:36 +00:00
Add --enable-quiet to configure, makes Finit real quiet.
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
1 parent
2026486fda
commit
0dd97de046
9 files changed
+56
-30
No files matched your search
@@ -295,10 +295,12 @@ int plugin_load_all(uev_ctx_t *ctx, char *path)
|
||||
DIR *dp = opendir(path);
|
||||
struct dirent *entry;
|
||||
|
||||
print_desc("Loading plugins", NULL);
|
||||
if (verbose)
|
||||
print_desc("Loading plugins", NULL);
|
||||
if (!dp) {
|
||||
_e("Failed, cannot open plugin directory %s: %s", path, strerror(errno));
|
||||
return 1;
|
||||
fail = 1;
|
||||
goto exit;
|
||||
}
|
||||
plugpath = path;
|
||||
|
||||
@@ -319,6 +321,9 @@ int plugin_load_all(uev_ctx_t *ctx, char *path)
|
||||
|
||||
/* Always initialize plugins */
|
||||
init_plugins(ctx);
|
||||
exit:
|
||||
if (verbose)
|
||||
print_result(fail);
|
||||
|
||||
return fail;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user