X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=src%2Fplugins%2Fctf%2Fcommon%2Fmetadata%2Fctf-meta-resolve.cpp;h=1f7ffe57c388d0930db9fdc843731c15980e8c17;hb=4b9e2e3d5986e17f1594c24dea430cb51a529360;hp=c77ec46b29c37c9abb3a4e635af968fa2bd4cfc7;hpb=0e733f80a39413148f4f279b91f4f35c7a638527;p=babeltrace.git diff --git a/src/plugins/ctf/common/metadata/ctf-meta-resolve.cpp b/src/plugins/ctf/common/metadata/ctf-meta-resolve.cpp index c77ec46b..1f7ffe57 100644 --- a/src/plugins/ctf/common/metadata/ctf-meta-resolve.cpp +++ b/src/plugins/ctf/common/metadata/ctf-meta-resolve.cpp @@ -5,27 +5,24 @@ * Copyright 2015 Jérémie Galarneau */ +#include +#include +#include +#include + +#include + #define BT_COMP_LOG_SELF_COMP (ctx->self_comp) #define BT_COMP_LOG_SELF_COMP_CLASS (ctx->self_comp_class) -#define BT_LOG_OUTPUT_LEVEL (ctx->log_level) +#define BT_LOG_OUTPUT_LEVEL ((enum bt_log_level) ctx->log_level) #define BT_LOG_TAG "PLUGIN/CTF/META/RESOLVE" +#include "logging.hpp" #include "logging/comp-logging.h" -#include -#include "common/macros.h" #include "common/assert.h" #include "common/common.h" -#include -#include -#include -#include -#include -#include -#include -#include #include "ctf-meta-visitors.hpp" -#include "logging.hpp" using field_class_stack_t = GPtrArray; @@ -278,7 +275,7 @@ end: /* * Destroys a path token. */ -static void ptokens_destroy_func(gpointer ptoken, gpointer data) +static void ptokens_destroy_func(gpointer ptoken, gpointer) { g_string_free((GString *) ptoken, TRUE); } @@ -728,8 +725,10 @@ static int64_t get_field_paths_lca_index(struct ctf_field_path *field_path1, if (BT_LOG_ON_TRACE) { GString *field_path1_pretty = ctf_field_path_string(field_path1); GString *field_path2_pretty = ctf_field_path_string(field_path2); - const char *field_path1_pretty_str = field_path1_pretty ? field_path1_pretty->str : "(null)"; - const char *field_path2_pretty_str = field_path2_pretty ? field_path2_pretty->str : "(null)"; + const char *field_path1_pretty_str = + field_path1_pretty ? field_path1_pretty->str : "(null)"; + const char *field_path2_pretty_str = + field_path2_pretty ? field_path2_pretty->str : "(null)"; BT_COMP_LOGD("Finding lowest common ancestor (LCA) between two field paths: " "field-path-1=\"%s\", field-path-2=\"%s\"",