From: Mathieu Desnoyers Date: Sat, 31 Dec 2011 02:56:05 +0000 (-0500) Subject: Only print the futex perror in debug mode X-Git-Tag: v1.9.5~27 X-Git-Url: https://git.lttng.org/?a=commitdiff_plain;h=cd27263b5ddfee00e67674cae4fdf05b70a43438;p=lttng-ust.git Only print the futex perror in debug mode Signed-off-by: Mathieu Desnoyers --- diff --git a/liblttng-ust/lttng-ust-comm.c b/liblttng-ust/lttng-ust-comm.c index c52531f5..b968b498 100644 --- a/liblttng-ust/lttng-ust-comm.c +++ b/liblttng-ust/lttng-ust-comm.c @@ -567,7 +567,8 @@ void wait_for_sessiond(struct sock_info *sock_info) "Please upgrade your kernel " "(fix is commit 9ea71503a8ed9184d2d0b8ccc4d269d05f7940ae in Linux kernel " "mainline). LTTng-UST will use polling mode fallback."); - PERROR("futex"); + if (ust_debug()) + PERROR("futex"); } } }