projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Cleanup lttng-live: add brackets in lttng_live_read()
[babeltrace.git]
/
formats
/
lttng-live
/
lttng-live-comm.c
diff --git
a/formats/lttng-live/lttng-live-comm.c
b/formats/lttng-live/lttng-live-comm.c
index 945df4317bdec9d0ca1aa324405f110d229d8143..3970ac22ee6ed43fa33dae4664061cc478811836 100644
(file)
--- a/
formats/lttng-live/lttng-live-comm.c
+++ b/
formats/lttng-live/lttng-live-comm.c
@@
-682,8
+682,8
@@
retry:
ret = ask_new_streams(ctx);
if (ret < 0)
goto error;
ret = ask_new_streams(ctx);
if (ret < 0)
goto error;
- g_hash_table_foreach(ctx->session->ctf_traces,
add_traces,
- ctx->bt_ctx);
+ g_hash_table_foreach(ctx->session->ctf_traces,
+
add_traces,
ctx->bt_ctx);
}
if (rp.flags & (LTTNG_VIEWER_FLAG_NEW_METADATA
| LTTNG_VIEWER_FLAG_NEW_STREAM)) {
}
if (rp.flags & (LTTNG_VIEWER_FLAG_NEW_METADATA
| LTTNG_VIEWER_FLAG_NEW_STREAM)) {
@@
-995,8
+995,8
@@
retry:
ret = ask_new_streams(ctx);
if (ret < 0)
goto error;
ret = ask_new_streams(ctx);
if (ret < 0)
goto error;
- g_hash_table_foreach(ctx->session->ctf_traces,
add_traces,
- ctx->bt_ctx);
+ g_hash_table_foreach(ctx->session->ctf_traces,
+
add_traces,
ctx->bt_ctx);
}
break;
case LTTNG_VIEWER_INDEX_RETRY:
}
break;
case LTTNG_VIEWER_INDEX_RETRY:
@@
-1467,8
+1467,9
@@
void lttng_live_read(struct lttng_live_ctx *ctx)
sout = container_of(td_write, struct ctf_text_stream_pos,
trace_descriptor);
sout = container_of(td_write, struct ctf_text_stream_pos,
trace_descriptor);
- if (!sout->parent.event_cb)
+ if (!sout->parent.event_cb)
{
goto end_free;
goto end_free;
+ }
ret = lttng_live_create_viewer_session(ctx);
if (ret < 0) {
ret = lttng_live_create_viewer_session(ctx);
if (ret < 0) {
@@
-1495,13
+1496,16
@@
void lttng_live_read(struct lttng_live_ctx *ctx)
int flags;
while (!ctx->session->stream_count) {
int flags;
while (!ctx->session->stream_count) {
- if (ctx->session_ids->len == 0)
+ if (ctx->session_ids->len == 0)
{
goto end_free;
goto end_free;
+ }
ret = ask_new_streams(ctx);
ret = ask_new_streams(ctx);
- if (ret < 0)
+ if (ret < 0)
{
goto end_free;
goto end_free;
- if (!ctx->session->stream_count)
+ }
+ if (!ctx->session->stream_count) {
(void) poll(NULL, 0, ACTIVE_POLL_DELAY);
(void) poll(NULL, 0, ACTIVE_POLL_DELAY);
+ }
}
g_hash_table_foreach(ctx->session->ctf_traces, add_traces,
}
g_hash_table_foreach(ctx->session->ctf_traces, add_traces,
This page took
0.026945 seconds
and
4
git commands to generate.