X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fbin%2Flttng-sessiond%2Fsession.c;h=e7fc7c35ade4ee4fa32bd778b8a2e927583957aa;hb=80e327fa80045f6b470ac76963fc4b5d396a80a9;hp=68edeb9ee06c46fbf0500020bc64bc658645c1b0;hpb=10a8a2237343699e3923d87e24dbf2d7fe225377;p=lttng-tools.git diff --git a/src/bin/lttng-sessiond/session.c b/src/bin/lttng-sessiond/session.c index 68edeb9ee..e7fc7c35a 100644 --- a/src/bin/lttng-sessiond/session.c +++ b/src/bin/lttng-sessiond/session.c @@ -25,10 +25,8 @@ #include #include +#include #include -#include -#include -#include #include "session.h" @@ -179,7 +177,7 @@ int session_create(char *name, char *path, uid_t uid, gid_t gid) /* Allocate session data structure */ new_session = zmalloc(sizeof(struct ltt_session)); if (new_session == NULL) { - perror("zmalloc"); + PERROR("zmalloc"); ret = LTTCOMM_FATAL; goto error_malloc; } @@ -223,7 +221,7 @@ int session_create(char *name, char *path, uid_t uid, gid_t gid) if (ret < 0) { if (ret != -EEXIST) { ERR("Trace directory creation error"); - ret = LTTCOMM_CREATE_FAIL; + ret = LTTCOMM_CREATE_DIR_FAIL; goto error; } }