projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: consumer add channel return value was positive on error
[lttng-tools.git]
/
src
/
common
/
consumer.c
diff --git
a/src/common/consumer.c
b/src/common/consumer.c
index 6990dd9678ad2723738e3cf5dd18fe2dd53b069f..96bc337262d65cf525484ac14962f2b44eee19a6 100644
(file)
--- a/
src/common/consumer.c
+++ b/
src/common/consumer.c
@@
-890,6
+890,8
@@
end:
/*
* Add a channel to the global list protected by a mutex.
/*
* Add a channel to the global list protected by a mutex.
+ *
+ * On success 0 is returned else a negative value.
*/
int consumer_add_channel(struct lttng_consumer_channel *channel,
struct lttng_consumer_local_data *ctx)
*/
int consumer_add_channel(struct lttng_consumer_channel *channel,
struct lttng_consumer_local_data *ctx)
@@
-907,7
+909,7
@@
int consumer_add_channel(struct lttng_consumer_channel *channel,
/* Channel already exist. Ignore the insertion */
ERR("Consumer add channel key %" PRIu64 " already exists!",
channel->key);
/* Channel already exist. Ignore the insertion */
ERR("Consumer add channel key %" PRIu64 " already exists!",
channel->key);
- ret =
LTTNG_ERR_KERN_CHAN_
EXIST;
+ ret =
-E
EXIST;
goto end;
}
goto end;
}
This page took
0.024554 seconds
and
4
git commands to generate.