projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: bad logical check of error codes
[lttng-tools.git]
/
src
/
bin
/
lttng-sessiond
/
context.c
diff --git
a/src/bin/lttng-sessiond/context.c
b/src/bin/lttng-sessiond/context.c
index a83cb46fc9dec796868dbb95157d901cb46cdb70..6aacbad0ea1c96ad3375739ca908f765f1ba4370 100644
(file)
--- a/
src/bin/lttng-sessiond/context.c
+++ b/
src/bin/lttng-sessiond/context.c
@@
-132,6
+132,7
@@
static int add_uctx_to_channel(struct ltt_ust_session *usess, int domain,
/* Add ltt UST context node to ltt UST channel */
lttng_ht_add_unique_ulong(uchan->ctx, &uctx->node);
rcu_read_unlock();
/* Add ltt UST context node to ltt UST channel */
lttng_ht_add_unique_ulong(uchan->ctx, &uctx->node);
rcu_read_unlock();
+ cds_list_add_tail(&uctx->list, &uchan->ctx_list);
DBG("Context UST %d added to channel %s", uctx->ctx.ctx, uchan->name);
DBG("Context UST %d added to channel %s", uctx->ctx.ctx, uchan->name);
@@
-262,7
+263,7
@@
int context_ust_add(struct ltt_ust_session *usess, int domain,
}
/* Get UST channel if defined */
}
/* Get UST channel if defined */
- if (channel_name != '\0') {
+ if (channel_name
[0]
!= '\0') {
uchan = trace_ust_find_channel_by_name(chan_ht, channel_name);
if (uchan == NULL) {
ret = LTTNG_ERR_UST_CHAN_NOT_FOUND;
uchan = trace_ust_find_channel_by_name(chan_ht, channel_name);
if (uchan == NULL) {
ret = LTTNG_ERR_UST_CHAN_NOT_FOUND;
This page took
0.024996 seconds
and
5
git commands to generate.