From 47e56665e2bd1ef11ff703a04bee9857aa7ced4f Mon Sep 17 00:00:00 2001 From: Philippe Proulx Date: Mon, 10 Apr 2017 15:18:14 -0400 Subject: [PATCH] bt_plugin_create_append_all_from_dir(): use printf_verbose() instead of error MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit It's not a fatal error when this function cannot open a directory: it can simply mean that this directory does not exist, but that's okay because the function does not load plugins in this case, and it returns an error code. Signed-off-by: Philippe Proulx Signed-off-by: Jérémie Galarneau --- lib/plugin/plugin.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/plugin/plugin.c b/lib/plugin/plugin.c index 0651ae72..7b9644d3 100644 --- a/lib/plugin/plugin.c +++ b/lib/plugin/plugin.c @@ -329,7 +329,8 @@ enum bt_plugin_status bt_plugin_create_append_all_from_dir( directory = opendir(file_path); if (!directory) { - perror("Failed to open plug-in directory"); + printf_verbose("Failed to open plugin directory \"%s\"\n", + file_path); ret = BT_PLUGIN_STATUS_ERROR; goto end; } -- 2.34.1