Log the wait-shm's path on shm_open failure
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 10 Apr 2019 19:28:15 +0000 (15:28 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 10 Apr 2019 21:05:58 +0000 (17:05 -0400)
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/bin/lttng-sessiond/shm.c

index a6328d5f618fb4474d70b5d5966cf45d5ff4a121..23bd9db2085221f341454bee136c76b1a6b91c68 100644 (file)
@@ -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;
        }
 
This page took 0.034088 seconds and 4 git commands to generate.