projects
/
lttng-ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: don't use strerror() from ust lock nocheck
[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 7835803bdc3271acbf932880800fa2c7cb02f9f9..e42c7b4e21d1bcb0a8d0cb09867832d9ed6e5d98 100644
(file)
--- a/
src/lib/lttng-ust-common/ust-cancelstate.c
+++ b/
src/lib/lttng-ust-common/ust-cancelstate.c
@@
-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.02441 seconds
and
4
git commands to generate.