#include <pthread.h>
#include <errno.h>
-#include <error.h>
+#include <string.h>
#include <urcu/tls-compat.h>
#include <lttng/ust-cancelstate.h>
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;
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) {