Don't report an error when the last section of the path exist in mkdir_recursive
[lttng-tools.git] / ltt-sessiond / main.c
index 7532e2c3bdde96e18c6d82772bf2b9ae3fbb146c..c72087ef25ddb88d27634e5d97d1967d1bec0277 100644 (file)
@@ -1432,12 +1432,13 @@ static int mount_debugfs(char *path)
 
        ret = mkdir_recursive(path, S_IRWXU | S_IRWXG, geteuid(), getegid());
        if (ret < 0) {
+               PERROR("Cannot create debugfs path");
                goto error;
        }
 
        ret = mount(type, path, type, 0, NULL);
        if (ret < 0) {
-               perror("mount debugfs");
+               PERROR("Cannot mount debugfs");
                goto error;
        }
 
@@ -1487,6 +1488,7 @@ static void init_kernel_tracer(void)
                }
                ret = mount_debugfs(debugfs_path);
                if (ret < 0) {
+                       perror("Cannot mount debugfs");
                        goto error;
                }
        }
This page took 0.023521 seconds and 4 git commands to generate.