[lttng-dev] [PATCH lttng-tools] Cleanup: lock file already taken is error, not warning
Mathieu Desnoyers
mathieu.desnoyers at efficios.com
Mon Jan 5 15:58:49 EST 2015
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers at efficios.com>
---
src/common/utils.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/common/utils.c b/src/common/utils.c
index 3428d31..7f91dcb 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");
--
2.1.1
More information about the lttng-dev
mailing list