g_lock: Fix two typos
authorVolker Lendecke <vl@samba.org>
Wed, 24 May 2017 11:27:18 +0000 (13:27 +0200)
committerVolker Lendecke <vl@samba.org>
Thu, 15 Jun 2017 11:19:13 +0000 (13:19 +0200)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/lib/g_lock.c

index 18157968f51a975bdcd36d7566bc96bf4b9b6c93..5b282e82e12e37fad6ff6a08803a2a884705fe4b 100644 (file)
@@ -382,7 +382,7 @@ NTSTATUS g_lock_unlock(struct g_lock_ctx *ctx, const char *name)
                }
        }
        if (i == num_locks) {
-               DEBUG(10, ("g_lock_force_unlock: Lock not found\n"));
+               DBG_DEBUG("Lock not found, num_locks=%u\n", num_locks);
                status = NT_STATUS_NOT_FOUND;
                goto done;
        }
@@ -399,8 +399,7 @@ NTSTATUS g_lock_unlock(struct g_lock_ctx *ctx, const char *name)
                status = dbwrap_record_store(rec, data, 0);
        }
        if (!NT_STATUS_IS_OK(status)) {
-               DEBUG(1, ("g_lock_force_unlock: Could not store record: %s\n",
-                         nt_errstr(status)));
+               DBG_WARNING("Could not store record: %s\n", nt_errstr(status));
                goto done;
        }