X-Git-Url: http://git.efficios.com/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fcommon%2Fconfig%2Fconfig.c;h=04bd2fdf207a71539e4e27a8b26f296b957a4c0b;hp=088d5b55a1b7e7c926f9ee4c0e1444a41b94ac38;hb=a96bc65dd4f5ba299189ccd1aa725f1526429824;hpb=f9b57ab287f585d3ec0a196af5e05e00fe23f6eb diff --git a/src/common/config/config.c b/src/common/config/config.c index 088d5b55a..04bd2fdf2 100644 --- a/src/common/config/config.c +++ b/src/common/config/config.c @@ -2176,7 +2176,7 @@ int process_session_node(xmlNodePtr session_node, const char *session_name, if (session_name && strcmp(name, session_name)) { /* This is not the session we are looking for */ - ret = -LTTNG_ERR_LOAD_SESSION_NOT_FOUND; + ret = -LTTNG_ERR_LOAD_SESSION_NOENT; goto end; } @@ -2328,7 +2328,7 @@ int load_session_from_file(const char *path, const char *session_name, end: xmlFreeDoc(doc); if (!ret) { - ret = session_found ? 0 : -LTTNG_ERR_LOAD_SESSION_NOT_FOUND; + ret = session_found ? 0 : -LTTNG_ERR_LOAD_SESSION_NOENT; } return ret; } @@ -2430,7 +2430,7 @@ end: } if (!session_found) { - ret = -LTTNG_ERR_LOAD_SESSION_NOT_FOUND; + ret = -LTTNG_ERR_LOAD_SESSION_NOENT; } return ret;