From a34c2ec061dd1aee434ad6c0a0a1d78876010d47 Mon Sep 17 00:00:00 2001 From: Kienan Stewart Date: Wed, 11 Oct 2023 10:28:40 -0400 Subject: [PATCH] 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 --- src/common/ustcomm.c | 1 + 1 file changed, 1 insertion(+) 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) { /* -- 2.39.5