Fix: don't use strerror() from ust lock nocheck
[lttng-ust.git] / src / lib / lttng-ust-common / ust-cancelstate.c
index 2805758b1f54508ec37701ef382f674ec3cb6df9..e42c7b4e21d1bcb0a8d0cb09867832d9ed6e5d98 100644 (file)
@@ -6,7 +6,7 @@
 
 #include <pthread.h>
 #include <errno.h>
-#include <error.h>
+#include <string.h>
 #include <urcu/tls-compat.h>
 #include <lttng/ust-cancelstate.h>
 
@@ -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.024176 seconds and 4 git commands to generate.