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.11.0-rc2~33 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=876cb0ee3cf97083132f47ce16f86b4943b7c3c4;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; }