X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=plugins%2Flttng-utils%2Fplugin.c;h=1b63b8db585d3f6df9529401b6e6b15540d04f5a;hb=b4565e8b2e0f7c0e356919fe95b760bed7a71d1b;hp=9436ee34f7a2edd2fb2572b0a889cb726961c19b;hpb=56b43721cde738dace9fc445bcf388e944686cbc;p=babeltrace.git diff --git a/plugins/lttng-utils/plugin.c b/plugins/lttng-utils/plugin.c index 9436ee34..1b63b8db 100644 --- a/plugins/lttng-utils/plugin.c +++ b/plugins/lttng-utils/plugin.c @@ -26,6 +26,9 @@ * SOFTWARE. */ +#define BT_LOG_TAG "PLUGIN-CTF-LTTNG-UTILS-DEBUG-INFO-FLT" +#include "logging.h" + #include #include #include @@ -362,7 +365,7 @@ enum bt_component_status init_from_params( value_ret = bt_value_string_get(value, &tmp); if (value_ret) { ret = BT_COMPONENT_STATUS_INVALID; - printf_error("Failed to retrieve debug-info-field-name value. " + BT_LOGE_STR("Failed to retrieve debug-info-field-name value. " "Expecting a string"); } strcpy(debug_info_component->arg_debug_info_field_name, tmp); @@ -372,7 +375,7 @@ enum bt_component_status init_from_params( malloc(strlen("debug_info") + 1); if (!debug_info_component->arg_debug_info_field_name) { ret = BT_COMPONENT_STATUS_NOMEM; - printf_error(); + BT_LOGE_STR("Missing field name."); } sprintf(debug_info_component->arg_debug_info_field_name, "debug_info"); @@ -389,7 +392,7 @@ enum bt_component_status init_from_params( &debug_info_component->arg_debug_dir); if (value_ret) { ret = BT_COMPONENT_STATUS_INVALID; - printf_error("Failed to retrieve debug-dir value. " + BT_LOGE_STR("Failed to retrieve debug-dir value. " "Expecting a string"); } } @@ -406,7 +409,7 @@ enum bt_component_status init_from_params( &debug_info_component->arg_target_prefix); if (value_ret) { ret = BT_COMPONENT_STATUS_INVALID; - printf_error("Failed to retrieve target-prefix value. " + BT_LOGE_STR("Failed to retrieve target-prefix value. " "Expecting a string"); } } @@ -424,7 +427,7 @@ enum bt_component_status init_from_params( &bool_val); if (value_ret) { ret = BT_COMPONENT_STATUS_INVALID; - printf_error("Failed to retrieve full-path value. " + BT_LOGE_STR("Failed to retrieve full-path value. " "Expecting a boolean"); }