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-Url: http://git.efficios.com/?p=lttng-tools.git;a=commitdiff_plain;h=e6852848914f842a703ea4d35172297ccd066589 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; }