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
/
ust-app.c
diff --git
a/src/bin/lttng-sessiond/ust-app.c
b/src/bin/lttng-sessiond/ust-app.c
index 8dedb8730b8285f75cf51bf638ca2ac939d3af53..ab08ac0e4d04ccf409c8d02e358e11f0033a0520 100644
(file)
--- a/
src/bin/lttng-sessiond/ust-app.c
+++ b/
src/bin/lttng-sessiond/ust-app.c
@@
-3148,7
+3148,7
@@
int ust_app_list_events(struct lttng_event **events)
/* Handle ustctl error. */
if (ret < 0) {
free(tmp_event);
/* Handle ustctl error. */
if (ret < 0) {
free(tmp_event);
- if (ret != -LTTNG_UST_ERR_EXITING
||
ret != -EPIPE) {
+ if (ret != -LTTNG_UST_ERR_EXITING
&&
ret != -EPIPE) {
ERR("UST app tp list get failed for app %d with ret %d",
app->sock, ret);
} else {
ERR("UST app tp list get failed for app %d with ret %d",
app->sock, ret);
} else {
@@
-3248,7
+3248,7
@@
int ust_app_list_event_fields(struct lttng_event_field **fields)
/* Handle ustctl error. */
if (ret < 0) {
free(tmp_event);
/* Handle ustctl error. */
if (ret < 0) {
free(tmp_event);
- if (ret != -LTTNG_UST_ERR_EXITING
||
ret != -EPIPE) {
+ if (ret != -LTTNG_UST_ERR_EXITING
&&
ret != -EPIPE) {
ERR("UST app tp list field failed for app %d with ret %d",
app->sock, ret);
} else {
ERR("UST app tp list field failed for app %d with ret %d",
app->sock, ret);
} else {
This page took
0.024727 seconds
and
4
git commands to generate.