bt_ctf_event_serialize(): do not log whole function (done in stream.c)
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Thu, 18 May 2017 18:50:11 +0000 (14:50 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Sun, 28 May 2017 16:57:43 +0000 (12:57 -0400)
We already log the current event being serialized in
bt_ctf_stream_flush(): do not log twice.

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
lib/ctf-ir/event.c

index f61454e96ccb55a87371aa7498419c005adc3a3f..db3c446a87903534ce52fbb34bfc76ff402f8fed 100644 (file)
@@ -924,15 +924,7 @@ int bt_ctf_event_serialize(struct bt_ctf_event *event,
        assert(event);
        assert(pos);
 
-       BT_LOGV("Serializing event: "
-               "event-addr=%p, event-class-name=\"%s\", "
-               "event-class-id=%" PRId64 ", pos-offset=%" PRId64 ", "
-               "native-bo=%s",
-               event, bt_ctf_event_class_get_name(event->event_class),
-               bt_ctf_event_class_get_id(event->event_class),
-               pos->offset, bt_ctf_byte_order_string(native_byte_order));
-
-       BT_LOGV_STR("Serializing context field.");
+       BT_LOGV_STR("Serializing event's context field.");
        if (event->context_payload) {
                ret = bt_ctf_field_serialize(event->context_payload, pos,
                        native_byte_order);
@@ -947,7 +939,7 @@ int bt_ctf_event_serialize(struct bt_ctf_event *event,
                }
        }
 
-       BT_LOGV_STR("Serializing payload field.");
+       BT_LOGV_STR("Serializing event's payload field.");
        if (event->fields_payload) {
                ret = bt_ctf_field_serialize(event->fields_payload, pos,
                        native_byte_order);
This page took 0.025476 seconds and 4 git commands to generate.