bt_plugin_create_append_all_from_dir(): use printf_verbose() instead of error
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Mon, 10 Apr 2017 19:18:14 +0000 (15:18 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Sun, 28 May 2017 16:57:41 +0000 (12:57 -0400)
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 <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
lib/plugin/plugin.c

index 0651ae72f328c477c7a83cefa37f2ec741dfa784..7b9644d3e088b2dd1b353ccd2089adc68c820f99 100644 (file)
@@ -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;
        }
This page took 0.025266 seconds and 4 git commands to generate.