projects
/
lttng-ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: event notification capture error handling
[lttng-ust.git]
/
src
/
lib
/
lttng-ust-common
/
ust-cancelstate.c
diff --git
a/src/lib/lttng-ust-common/ust-cancelstate.c
b/src/lib/lttng-ust-common/ust-cancelstate.c
index 2805758b1f54508ec37701ef382f674ec3cb6df9..e42c7b4e21d1bcb0a8d0cb09867832d9ed6e5d98 100644
(file)
--- a/
src/lib/lttng-ust-common/ust-cancelstate.c
+++ b/
src/lib/lttng-ust-common/ust-cancelstate.c
@@
-6,7
+6,7
@@
#include <pthread.h>
#include <errno.h>
#include <pthread.h>
#include <errno.h>
-#include <
error
.h>
+#include <
string
.h>
#include <urcu/tls-compat.h>
#include <lttng/ust-cancelstate.h>
#include <urcu/tls-compat.h>
#include <lttng/ust-cancelstate.h>
@@
-28,7
+28,7
@@
int lttng_ust_cancelstate_disable_push(void)
goto end;
ret = pthread_setcancelstate(PTHREAD_CANCEL_DISABLE, &oldstate);
if (ret) {
goto end;
ret = pthread_setcancelstate(PTHREAD_CANCEL_DISABLE, &oldstate);
if (ret) {
- ERR("pthread_setcancelstate:
%s", strerror(ret)
);
+ ERR("pthread_setcancelstate:
ret=%d", ret
);
return -1;
}
state->oldstate = oldstate;
return -1;
}
state->oldstate = oldstate;
@@
-47,7
+47,7
@@
int lttng_ust_cancelstate_disable_pop(void)
goto end;
ret = pthread_setcancelstate(state->oldstate, &oldstate);
if (ret) {
goto end;
ret = pthread_setcancelstate(state->oldstate, &oldstate);
if (ret) {
- ERR("pthread_setcancelstate:
%s", strerror(ret)
);
+ ERR("pthread_setcancelstate:
ret=%d", ret
);
return -1;
}
if (oldstate != PTHREAD_CANCEL_DISABLE) {
return -1;
}
if (oldstate != PTHREAD_CANCEL_DISABLE) {
This page took
0.023833 seconds
and
4
git commands to generate.