From: Jérémie Galarneau Date: Thu, 27 Oct 2016 23:08:34 +0000 (-0400) Subject: Add missing line-feeds in logging X-Git-Tag: v2.0.0-pre1~743 X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=commitdiff_plain;h=5e86a07184ae8412f8c76b0392930e7f3be65454 Add missing line-feeds in logging Signed-off-by: Jérémie Galarneau --- 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; }