projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: Report errors occuring in lttng_live_read
[babeltrace.git]
/
formats
/
lttng-live
/
lttng-live-plugin.c
diff --git
a/formats/lttng-live/lttng-live-plugin.c
b/formats/lttng-live/lttng-live-plugin.c
index 608a6dab7321382bf79c8ddff5c7945075d38b44..d7ea14a07092ec06acb2c3ebedaa86996d56a1e9 100644
(file)
--- a/
formats/lttng-live/lttng-live-plugin.c
+++ b/
formats/lttng-live/lttng-live-plugin.c
@@
-135,7
+135,7
@@
int parse_url(const char *path, struct lttng_live_ctx *ctx)
if (ret < 0) {
goto end;
}
if (ret < 0) {
goto end;
}
- } else {
+ } else
if (ret == 0)
{
fprintf(stderr, "[error] Missing port number after delimitor ':'\n");
ret = -1;
goto end;
fprintf(stderr, "[error] Missing port number after delimitor ':'\n");
ret = -1;
goto end;
@@
-230,7
+230,7
@@
static int lttng_live_open_trace_read(const char *path)
}
if (ctx->session_ids->len > 0) {
}
if (ctx->session_ids->len > 0) {
- lttng_live_read(ctx);
+
ret =
lttng_live_read(ctx);
}
end_free:
}
end_free:
@@
-268,7
+268,9
@@
struct bt_trace_descriptor *lttng_live_open_trace(const char *path, int flags,
pos->parent.rw_table = NULL;
pos->parent.event_cb = NULL;
pos->parent.trace = &pos->trace_descriptor;
pos->parent.rw_table = NULL;
pos->parent.event_cb = NULL;
pos->parent.trace = &pos->trace_descriptor;
- lttng_live_open_trace_read(path);
+ if (lttng_live_open_trace_read(path) < 0) {
+ goto error;
+ }
return &pos->trace_descriptor;
error:
return &pos->trace_descriptor;
error:
This page took
0.026673 seconds
and
4
git commands to generate.