From cd27263b5ddfee00e67674cae4fdf05b70a43438 Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Fri, 30 Dec 2011 21:56:05 -0500 Subject: [PATCH] Only print the futex perror in debug mode Signed-off-by: Mathieu Desnoyers --- liblttng-ust/lttng-ust-comm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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"); } } } -- 2.34.1