Fix: don't use strerror() from ust lock nocheck
[lttng-ust.git] / liblttng-ust-comm / ust-cancelstate.c
index 0611ce256b9e2bf3f43d66551c9de275dd195637..3027449ddf436a9b49248d47fcdab96a82dff91f 100644 (file)
@@ -27,7 +27,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;
@@ -46,7 +46,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.022807 seconds and 4 git commands to generate.