Fix: don't use strerror() from ust lock nocheck
[lttng-ust.git] / src / lib / lttng-ust-common / ust-cancelstate.c
index 7835803bdc3271acbf932880800fa2c7cb02f9f9..e42c7b4e21d1bcb0a8d0cb09867832d9ed6e5d98 100644 (file)
@@ -28,7 +28,7 @@ int lttng_ust_cancelstate_disable_push(void)
                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;
@@ -47,7 +47,7 @@ int lttng_ust_cancelstate_disable_pop(void)
                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) {
This page took 0.023057 seconds and 4 git commands to generate.