From: Mathieu Desnoyers Date: Mon, 5 Jan 2015 20:58:49 +0000 (-0500) Subject: Cleanup: lock file already taken is error, not warning X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=commitdiff_plain;h=208ff148af91eb5ee6b2d88ada757c27be24d443 Cleanup: lock file already taken is error, not warning Signed-off-by: Mathieu Desnoyers Signed-off-by: Jérémie Galarneau --- diff --git a/src/common/utils.c b/src/common/utils.c index 3428d312d..7f91dcb81 100644 --- a/src/common/utils.c +++ b/src/common/utils.c @@ -516,7 +516,7 @@ int utils_create_lock_file(const char *filepath) */ ret = flock(fd, LOCK_EX | LOCK_NB); if (ret) { - WARN("Could not get lock file %s, another instance is running.", + ERR("Could not get lock file %s, another instance is running.", filepath); if (close(fd)) { PERROR("close lock file");