From: Jérémie Galarneau Date: Wed, 10 Apr 2019 19:28:15 +0000 (-0400) Subject: Log the wait-shm's path on shm_open failure X-Git-Tag: v2.10.7~10 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=4829aad0888e9c0991cd3eab0ba999c2b4f5f50b;p=lttng-tools.git Log the wait-shm's path on shm_open failure Signed-off-by: Jérémie Galarneau --- diff --git a/src/bin/lttng-sessiond/shm.c b/src/bin/lttng-sessiond/shm.c index a6328d5f6..23bd9db20 100644 --- a/src/bin/lttng-sessiond/shm.c +++ b/src/bin/lttng-sessiond/shm.c @@ -73,7 +73,7 @@ static int get_wait_shm(char *shm_path, size_t mmap_size, int global) */ wait_shm_fd = shm_open(shm_path, O_RDWR | O_CREAT, mode); if (wait_shm_fd < 0) { - PERROR("shm_open wait shm"); + PERROR("Failed to open wait shm at %s", shm_path); goto error; }