X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=src%2Flib%2Flttng-ust-common%2Fust-cancelstate.c;h=e42c7b4e21d1bcb0a8d0cb09867832d9ed6e5d98;hb=ab64db3571ab2b39a2218f81b3483768f815822a;hp=2805758b1f54508ec37701ef382f674ec3cb6df9;hpb=d0cd72be0eacd90e56470e9cb954fa129997037e;p=lttng-ust.git diff --git a/src/lib/lttng-ust-common/ust-cancelstate.c b/src/lib/lttng-ust-common/ust-cancelstate.c index 2805758b..e42c7b4e 100644 --- a/src/lib/lttng-ust-common/ust-cancelstate.c +++ b/src/lib/lttng-ust-common/ust-cancelstate.c @@ -6,7 +6,7 @@ #include #include -#include +#include #include #include @@ -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) {