]> git.corax.cc Git - toolbox/commitdiff
include/sem: Fix names of logging functions
authorMatthias Kruk <m@m10k.eu>
Mon, 22 Mar 2021 00:43:39 +0000 (09:43 +0900)
committerMatthias Kruk <m@m10k.eu>
Mon, 22 Mar 2021 00:43:39 +0000 (09:43 +0900)
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

index 1e53ff91d8693a88b65dc014a707c966ba37ea83..7b48ebbc22d087abdea2c8f643dd9b217978eb52 100644 (file)
@@ -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