#include <sys/types.h>
#include <urcu.h>
-#include <common/sessiond-comm/sessiond-comm.h>
-#include <common/lttngerr.h>
#include <common/common.h>
+#include <common/sessiond-comm/sessiond-comm.h>
#include "session.h"
/* 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;
}
if (ret < 0) {
if (ret != -EEXIST) {
ERR("Trace directory creation error");
- ret = LTTCOMM_CREATE_FAIL;
+ ret = LTTCOMM_CREATE_DIR_FAIL;
goto error;
}
}