From: Matthias Kruk Date: Mon, 22 Mar 2021 00:43:39 +0000 (+0900) Subject: include/sem: Fix names of logging functions X-Git-Url: https://git.corax.cc/?a=commitdiff_plain;h=5ee4914cd55ed3f1648cd1b1f40124662436e48c;p=toolbox 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. --- 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