From 5ee4914cd55ed3f1648cd1b1f40124662436e48c Mon Sep 17 00:00:00 2001 From: Matthias Kruk Date: Mon, 22 Mar 2021 09:43:39 +0900 Subject: [PATCH] include/sem: Fix names of logging functions The functions that the sem module was using for logging do not exist in the latest log module. This commit changes the sem module to use the right functions. --- include/sem.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/sem.sh b/include/sem.sh index 1e53ff9..7b48ebb 100644 --- a/include/sem.sh +++ b/include/sem.sh @@ -110,12 +110,12 @@ sem_init() { # If the semaphore is new, locking must succeed, # otherwise it was not a new semaphore if ! mutex_trylock "$mutex"; then - error "Could not acquire $mutex" + log_error "Could not acquire $mutex" return 1 fi if ! mutex_trylock "$owner"; then - error "Could not acquire $mutex" + log_error "Could not acquire $mutex" err=1 elif ! echo "$value" > "$sem"; then err=1 -- 2.47.3