From 5e86a07184ae8412f8c76b0392930e7f3be65454 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Galarneau?= Date: Thu, 27 Oct 2016 19:08:34 -0400 Subject: [PATCH] Add missing line-feeds in logging MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérémie Galarneau --- converter/babeltrace.c | 2 +- lib/plugin-system/component-factory.c | 4 ++-- lib/plugin-system/plugin.c | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/converter/babeltrace.c b/converter/babeltrace.c index d619066d..88d8423e 100644 --- a/converter/babeltrace.c +++ b/converter/babeltrace.c @@ -67,7 +67,7 @@ void print_component_classes_found(struct bt_component_factory *factory) count = bt_component_factory_get_component_class_count(factory); if (count <= 0) { - fprintf(stderr, "No component classes found. Please make sure your plug-in search path is set correctly."); + fprintf(stderr, "No component classes found. Please make sure your plug-in search path is set correctly.\n"); return; } diff --git a/lib/plugin-system/component-factory.c b/lib/plugin-system/component-factory.c index 471b4b87..c5ac08ab 100644 --- a/lib/plugin-system/component-factory.c +++ b/lib/plugin-system/component-factory.c @@ -216,7 +216,7 @@ bt_component_factory_load_dir(struct bt_component_factory *factory, stat_ret = stat(file_path, &st); if (stat_ret < 0) { /* Continue to next file / directory. */ - printf_perror("Failed to stat() plugin file"); + printf_perror("Failed to stat() plugin file\n"); continue; } @@ -465,7 +465,7 @@ add_component_class(struct bt_component_factory *factory, const char *name, struct bt_plugin *plugin = bt_component_class_get_plugin( component_class); - printf_warning("Duplicate component class registration attempted. Component class %s being registered by plugin %s (path: %s) conflicts with one already registered by plugin %s (path: %s)", + printf_warning("Duplicate component class registration attempted. Component class %s being registered by plugin %s (path: %s) conflicts with one already registered by plugin %s (path: %s)\n", name, bt_plugin_get_name(factory->current_plugin), bt_plugin_get_path(factory->current_plugin), bt_plugin_get_name(plugin), diff --git a/lib/plugin-system/plugin.c b/lib/plugin-system/plugin.c index d6aca933..295140c0 100644 --- a/lib/plugin-system/plugin.c +++ b/lib/plugin-system/plugin.c @@ -85,14 +85,14 @@ struct bt_plugin *bt_plugin_create_from_module(GModule *module, if (!g_module_symbol(module, PLUGIN_SYMBOL_NAME, (gpointer *) &plugin->name)) { - printf_error("Unable to resolve plugin symbol %s from %s", + printf_verbose("Unable to resolve plugin symbol %s from %s\n", PLUGIN_SYMBOL_NAME, g_module_name(module)); goto error; } if (!g_module_symbol(module, PLUGIN_SYMBOL_LICENSE, (gpointer *) &plugin->license)) { - printf_error("Unable to resolve plugin symbol %s from %s", + printf_verbose("Unable to resolve plugin symbol %s from %s\n", PLUGIN_SYMBOL_LICENSE, g_module_name(module)); goto error; } -- 2.34.1