projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
lib/ctf-ir/field-types.c: add logging
[babeltrace.git]
/
lib
/
ctf-ir
/
event.c
diff --git
a/lib/ctf-ir/event.c
b/lib/ctf-ir/event.c
index 59eac156596fabe61dc703b37b41488eb9c4d780..4687da09033c86f205dd977d9465e3fb7344473c 100644
(file)
--- a/
lib/ctf-ir/event.c
+++ b/
lib/ctf-ir/event.c
@@
-94,11
+94,7
@@
struct bt_ctf_event *bt_ctf_event_create(struct bt_ctf_event_class *event_class)
* associated to a stream class.
*/
if (!stream_class) {
* associated to a stream class.
*/
if (!stream_class) {
- BT_LOGW("Event class is not part of a stream class: "
- "addr=%p, event-class-name=\"%s\", "
- "event-class-id=%" PRId64,
- event, bt_ctf_event_class_get_name(event->event_class),
- bt_ctf_event_class_get_id(event_class));
+ BT_LOGW_STR("Event class is not part of a stream class.");
goto error;
}
goto error;
}
@@
-111,10
+107,7
@@
struct bt_ctf_event *bt_ctf_event_create(struct bt_ctf_event_class *event_class)
/* Validate the trace (if any), the stream class, and the event class */
trace = bt_ctf_stream_class_get_trace(stream_class);
if (trace) {
/* Validate the trace (if any), the stream class, and the event class */
trace = bt_ctf_stream_class_get_trace(stream_class);
if (trace) {
- BT_LOGD("Event's class is part of a trace: "
- "event-class-name=\"%s\", event-class-id=%" PRId64,
- bt_ctf_event_class_get_name(event_class),
- bt_ctf_event_class_get_id(event_class));
+ BT_LOGD_STR("Event's class is part of a trace.");
packet_header_type = bt_ctf_trace_get_packet_header_type(trace);
trace_valid = trace->valid;
assert(trace_valid);
packet_header_type = bt_ctf_trace_get_packet_header_type(trace);
trace_valid = trace->valid;
assert(trace_valid);
@@
-145,10
+138,7
@@
struct bt_ctf_event *bt_ctf_event_create(struct bt_ctf_event_class *event_class)
* This means something went wrong during the validation
* process, not that the objects are invalid.
*/
* This means something went wrong during the validation
* process, not that the objects are invalid.
*/
- BT_LOGE("Failed to validate event: addr=%p, event-class-name=\"%s\", "
- "event-class-id=%" PRId64,
- event, bt_ctf_event_class_get_name(event->event_class),
- bt_ctf_event_class_get_id(event_class));
+ BT_LOGE("Failed to validate event and parents: ret=%d", ret);
goto error;
}
goto error;
}
@@
-156,11
+146,7
@@
struct bt_ctf_event *bt_ctf_event_create(struct bt_ctf_event_class *event_class)
validation_flags) {
/* Invalid trace/stream class/event class */
BT_LOGE("Invalid trace, stream class, or event class: "
validation_flags) {
/* Invalid trace/stream class/event class */
BT_LOGE("Invalid trace, stream class, or event class: "
- "event-addr=%p, event-class-name=\"%s\", "
- "event-class-id=%" PRId64 ", valid-flags=0x%x",
- event, bt_ctf_event_class_get_name(event->event_class),
- bt_ctf_event_class_get_id(event_class),
- validation_output.valid_flags);
+ "valid-flags=0x%x", validation_output.valid_flags);
goto error;
}
goto error;
}
@@
-893,7
+879,7
@@
int bt_ctf_event_serialize(struct bt_ctf_event *event,
"native-bo=%s",
event, bt_ctf_event_class_get_name(event->event_class),
bt_ctf_event_class_get_id(event->event_class),
"native-bo=%s",
event, bt_ctf_event_class_get_name(event->event_class),
bt_ctf_event_class_get_id(event->event_class),
- pos, bt_ctf_
field_type_
byte_order_string(native_byte_order));
+ pos, bt_ctf_byte_order_string(native_byte_order));
if (event->context_payload) {
ret = bt_ctf_field_serialize(event->context_payload, pos,
if (event->context_payload) {
ret = bt_ctf_field_serialize(event->context_payload, pos,
This page took
0.026486 seconds
and
4
git commands to generate.