From: Volker Lendecke Date: Fri, 14 Jun 2024 16:28:10 +0000 (+0200) Subject: smbd: Fix DEBUG messages X-Git-Tag: tdb-1.4.11~311 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=06aff34586d154cb183235c8775a59798b329b6c;p=thirdparty%2Fsamba.git smbd: Fix DEBUG messages Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- diff --git a/source3/smbd/server.c b/source3/smbd/server.c index c7d5dae44f0..e9ba7be9166 100644 --- a/source3/smbd/server.c +++ b/source3/smbd/server.c @@ -1512,7 +1512,7 @@ static NTSTATUS smbd_claim_version(struct messaging_context *msg, NULL, NULL); if (!NT_STATUS_IS_OK(status)) { - DBG_WARNING("g_lock_lock(G_LOCK_WRITE) failed: %s\n", + DBG_WARNING("g_lock_lock(G_LOCK_UPGRADE) failed: %s\n", nt_errstr(status)); DBG_ERR("smbd %s already running, refusing to start " "version %s\n", state.version, version); @@ -1536,7 +1536,7 @@ static NTSTATUS smbd_claim_version(struct messaging_context *msg, NULL, NULL); if (!NT_STATUS_IS_OK(status)) { - DBG_WARNING("g_lock_lock(G_LOCK_READ) failed: %s\n", + DBG_WARNING("g_lock_lock(G_LOCK_DOWNGRADE) failed: %s\n", nt_errstr(status)); TALLOC_FREE(ctx); return status;