Fix: All perror turned into PERROR to show file and line number
[lttng-tools.git] / src / bin / lttng-sessiond / session.c
index 97fc94fe535f939e8e46b17ff4005fe7e6141ab8..e7fc7c35ade4ee4fa32bd778b8a2e927583957aa 100644 (file)
@@ -177,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;
        }
@@ -221,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;
                }
        }
This page took 0.02571 seconds and 4 git commands to generate.