projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
lib: remove "unknown clock snapshot" concept
[babeltrace.git]
/
plugins
/
ctf
/
fs-sink
/
fs-sink.c
diff --git
a/plugins/ctf/fs-sink/fs-sink.c
b/plugins/ctf/fs-sink/fs-sink.c
index bc8d3fa1338c8a297b46af17c17ebe5e59500345..83742ed1240eedc13173d4040291823aa561f203 100644
(file)
--- a/
plugins/ctf/fs-sink/fs-sink.c
+++ b/
plugins/ctf/fs-sink/fs-sink.c
@@
-288,8
+288,8
@@
bt_self_component_status handle_event_msg(struct fs_sink_comp *fs_sink,
BT_ASSERT(ec);
if (stream->sc->default_clock_class) {
BT_ASSERT(ec);
if (stream->sc->default_clock_class) {
-
(void)
bt_message_event_borrow_default_clock_snapshot_const(
- msg
, &cs
);
+
cs =
bt_message_event_borrow_default_clock_snapshot_const(
+ msg);
}
ret = fs_sink_stream_write_event(stream, cs, ir_event, ec);
}
ret = fs_sink_stream_write_event(stream, cs, ir_event, ec);
@@
-321,8
+321,8
@@
bt_self_component_status handle_packet_beginning_msg(
}
if (stream->sc->default_clock_class) {
}
if (stream->sc->default_clock_class) {
-
(void)
bt_message_packet_beginning_borrow_default_clock_snapshot_const(
- msg
, &cs
);
+
cs =
bt_message_packet_beginning_borrow_default_clock_snapshot_const(
+ msg);
BT_ASSERT(cs);
}
BT_ASSERT(cs);
}
@@
-457,14
+457,14
@@
bt_self_component_status handle_packet_end_msg(
}
if (stream->sc->default_clock_class) {
}
if (stream->sc->default_clock_class) {
-
(void)
bt_message_packet_end_borrow_default_clock_snapshot_const(
- msg
, &cs
);
+
cs =
bt_message_packet_end_borrow_default_clock_snapshot_const(
+ msg);
BT_ASSERT(cs);
}
if (stream->sc->default_clock_class) {
BT_ASSERT(cs);
}
if (stream->sc->default_clock_class) {
-
(void)
bt_message_packet_end_borrow_default_clock_snapshot_const(
- msg
, &cs
);
+
cs =
bt_message_packet_end_borrow_default_clock_snapshot_const(
+ msg);
BT_ASSERT(cs);
}
BT_ASSERT(cs);
}
@@
-631,14
+631,13
@@
bt_self_component_status handle_discarded_events_msg(
* The clock snapshot values will be validated when
* handling the next "packet beginning" message.
*/
* The clock snapshot values will be validated when
* handling the next "packet beginning" message.
*/
-
(void)
bt_message_discarded_events_borrow_default_beginning_clock_snapshot_const(
- msg
, &cs
);
+
cs =
bt_message_discarded_events_borrow_default_beginning_clock_snapshot_const(
+ msg);
BT_ASSERT(cs);
stream->discarded_events_state.beginning_cs =
bt_clock_snapshot_get_value(cs);
BT_ASSERT(cs);
stream->discarded_events_state.beginning_cs =
bt_clock_snapshot_get_value(cs);
- cs = NULL;
- (void) bt_message_discarded_events_borrow_default_end_clock_snapshot_const(
- msg, &cs);
+ cs = bt_message_discarded_events_borrow_default_end_clock_snapshot_const(
+ msg);
BT_ASSERT(cs);
stream->discarded_events_state.end_cs =
bt_clock_snapshot_get_value(cs);
BT_ASSERT(cs);
stream->discarded_events_state.end_cs =
bt_clock_snapshot_get_value(cs);
@@
-722,14
+721,13
@@
bt_self_component_status handle_discarded_packets_msg(
* The clock snapshot values will be validated when
* handling the next "packet beginning" message.
*/
* The clock snapshot values will be validated when
* handling the next "packet beginning" message.
*/
-
(void)
bt_message_discarded_packets_borrow_default_beginning_clock_snapshot_const(
- msg
, &cs
);
+
cs =
bt_message_discarded_packets_borrow_default_beginning_clock_snapshot_const(
+ msg);
BT_ASSERT(cs);
stream->discarded_packets_state.beginning_cs =
bt_clock_snapshot_get_value(cs);
BT_ASSERT(cs);
stream->discarded_packets_state.beginning_cs =
bt_clock_snapshot_get_value(cs);
- cs = NULL;
- (void) bt_message_discarded_packets_borrow_default_end_clock_snapshot_const(
- msg, &cs);
+ cs = bt_message_discarded_packets_borrow_default_end_clock_snapshot_const(
+ msg);
BT_ASSERT(cs);
stream->discarded_packets_state.end_cs =
bt_clock_snapshot_get_value(cs);
BT_ASSERT(cs);
stream->discarded_packets_state.end_cs =
bt_clock_snapshot_get_value(cs);
This page took
0.024462 seconds
and
4
git commands to generate.