g_lock: Fix DEBUG messages
authorVolker Lendecke <vl@samba.org>
Thu, 16 Aug 2018 09:34:36 +0000 (11:34 +0200)
committerJeremy Allison <jra@samba.org>
Fri, 17 Aug 2018 16:25:08 +0000 (18:25 +0200)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/lib/g_lock.c

index 9090a2d873c1776024e7fdf3c884a9a7a0219886..96e5612529d519f59d1256a55a1bd8a9e54cce95 100644 (file)
@@ -167,14 +167,14 @@ struct g_lock_ctx *g_lock_ctx_init(TALLOC_CTX *mem_ctx,
                          DBWRAP_FLAG_NONE);
        TALLOC_FREE(db_path);
        if (backend == NULL) {
-               DEBUG(1, ("g_lock_init: Could not open g_lock.tdb\n"));
+               DBG_WARNING("Could not open g_lock.tdb\n");
                TALLOC_FREE(result);
                return NULL;
        }
 
        result->db = db_open_watched(result, backend, msg);
        if (result->db == NULL) {
-               DBG_WARNING("g_lock_init: db_open_watched failed\n");
+               DBG_WARNING("db_open_watched failed\n");
                TALLOC_FREE(result);
                return NULL;
        }