From: Kienan Stewart Date: Wed, 11 Oct 2023 14:28:40 +0000 (-0400) Subject: Log path used in connection attempts X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=a34c2ec061dd1aee434ad6c0a0a1d78876010d47;p=lttng-ust.git Log path used in connection attempts Motivated by feedback on the lttng-dev mailing list that a user couldn't find the socket path used when debugging connection issues of their UST application. Refs https://bugs.lttng.org/issues/1393 Change-Id: I42c8bb9ae372683a16f176caf87ac394f816955e Signed-off-by: Kienan Stewart Signed-off-by: Mathieu Desnoyers --- diff --git a/src/common/ustcomm.c b/src/common/ustcomm.c index f391399f..47f228b1 100644 --- a/src/common/ustcomm.c +++ b/src/common/ustcomm.c @@ -82,6 +82,7 @@ int ustcomm_connect_unix_sock(const char *pathname, long timeout) strncpy(sun.sun_path, pathname, sizeof(sun.sun_path)); sun.sun_path[sizeof(sun.sun_path) - 1] = '\0'; + DBG("Connecting to '%s'", sun.sun_path); ret = connect(fd, (struct sockaddr *) &sun, sizeof(sun)); if (ret < 0) { /*