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) {