Logging: standardize logging tags
[babeltrace.git] / src / plugins / ctf / lttng-live / lttng-live.c
index 1a24a734f64565ca0b3d528eed3b3797fd5ec63d..c44217b6e1eece453571cacdd94f5ed68e90cd59 100644 (file)
@@ -28,7 +28,7 @@
  * SOFTWARE.
  */
 
-#define BT_LOG_TAG "PLUGIN-CTF-LTTNG-LIVE-SRC"
+#define BT_LOG_TAG "PLUGIN/SRC.CTF.LTTNG-LIVE"
 #include "logging.h"
 
 #include <glib.h>
@@ -39,7 +39,6 @@
 #include <babeltrace2/babeltrace.h>
 #include "compat/compiler.h"
 #include <babeltrace2/types.h>
-#include "plugins/plugins-common.h"
 
 #include "data-stream.h"
 #include "metadata.h"
@@ -620,7 +619,7 @@ int live_get_msg_ts_ns(struct lttng_live_stream_iterator *stream_iter,
        BT_ASSERT(msg);
        BT_ASSERT(ts_ns);
 
-       BT_LOGV("Getting message's timestamp: iter-data-addr=%p, msg-addr=%p, "
+       BT_LOGD("Getting message's timestamp: iter-data-addr=%p, msg-addr=%p, "
                "last-msg-ts=%" PRId64, lttng_live_msg_iter, msg,
                last_msg_ts_ns);
 
@@ -703,7 +702,7 @@ int live_get_msg_ts_ns(struct lttng_live_stream_iterator *stream_iter,
                break;
        default:
                /* All the other messages have a higher priority */
-               BT_LOGV_STR("Message has no timestamp: using the last message timestamp.");
+               BT_LOGD_STR("Message has no timestamp: using the last message timestamp.");
                *ts_ns = last_msg_ts_ns;
                goto end;
        }
@@ -721,7 +720,7 @@ int live_get_msg_ts_ns(struct lttng_live_stream_iterator *stream_iter,
        goto end;
 
 no_clock_snapshot:
-       BT_LOGV_STR("Message's default clock snapshot is missing: "
+       BT_LOGD_STR("Message's default clock snapshot is missing: "
                "using the last message timestamp.");
        *ts_ns = last_msg_ts_ns;
        goto end;
@@ -731,7 +730,7 @@ error:
 
 end:
        if (ret == 0) {
-               BT_LOGV("Found message's timestamp: "
+               BT_LOGD("Found message's timestamp: "
                        "iter-data-addr=%p, msg-addr=%p, "
                        "last-msg-ts=%" PRId64 ", ts=%" PRId64,
                        lttng_live_msg_iter, msg, last_msg_ts_ns, *ts_ns);
@@ -1564,7 +1563,7 @@ end:
 BT_HIDDEN
 bt_self_component_status lttng_live_component_init(
                bt_self_component_source *self_comp,
-               const bt_value *params, UNUSED_VAR void *init_method_data)
+               const bt_value *params, __attribute__((unused)) void *init_method_data)
 {
        struct lttng_live_component *lttng_live;
        bt_self_component_status ret = BT_SELF_COMPONENT_STATUS_OK;
This page took 0.024355 seconds and 4 git commands to generate.