X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=ltt-sessiond%2Fmain.c;h=c72087ef25ddb88d27634e5d97d1967d1bec0277;hp=7532e2c3bdde96e18c6d82772bf2b9ae3fbb146c;hb=7272acf55ec512708704dc5f1ad4f447e5b3ca8e;hpb=ab7f41031f9e2c92cb0d22062b0339e4d14a7ac2 diff --git a/ltt-sessiond/main.c b/ltt-sessiond/main.c index 7532e2c3b..c72087ef2 100644 --- a/ltt-sessiond/main.c +++ b/ltt-sessiond/main.c @@ -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; } }