From: Joseph Sutton Date: Mon, 7 Aug 2023 04:34:27 +0000 (+1200) Subject: s3:auth: Add missing newlines to logging messages X-Git-Tag: tevent-0.16.0~1159 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=29b2dcb4f5ea9fd63c6104ccc1af2dd94d1dd82f;p=thirdparty%2Fsamba.git s3:auth: Add missing newlines to logging messages Signed-off-by: Joseph Sutton Reviewed-by: Andrew Bartlett --- diff --git a/source3/auth/auth_samba4.c b/source3/auth/auth_samba4.c index 5039e56e30d..bae34e521c4 100644 --- a/source3/auth/auth_samba4.c +++ b/source3/auth/auth_samba4.c @@ -259,7 +259,7 @@ static NTSTATUS prepare_gensec(const struct auth_context *auth_context, server_credentials = cli_credentials_init_server(frame, lp_ctx); if (!server_credentials) { - DEBUG(1, ("Failed to init server credentials")); + DEBUG(1, ("Failed to init server credentials\n")); TALLOC_FREE(frame); return NT_STATUS_INVALID_SERVER_STATE; } diff --git a/source3/auth/auth_util.c b/source3/auth/auth_util.c index 293523f4272..4eb82519d7b 100644 --- a/source3/auth/auth_util.c +++ b/source3/auth/auth_util.c @@ -2149,7 +2149,7 @@ NTSTATUS make_server_info_info3(TALLOC_CTX *mem_ctx, if (NT_STATUS_EQUAL(nt_status, NT_STATUS_NO_SUCH_USER) && (lp_security() == SEC_ADS || lp_security() == SEC_DOMAIN) && lp_map_to_guest() == MAP_TO_GUEST_ON_BAD_UID) { - DBG_NOTICE("Try to map %s to guest account", + DBG_NOTICE("Try to map %s to guest account\n", nt_username); nt_status = make_server_info_guest(tmp_ctx, &result); if (NT_STATUS_IS_OK(nt_status)) { diff --git a/source3/auth/pampass.c b/source3/auth/pampass.c index 15025e7f1d4..5372626d5db 100644 --- a/source3/auth/pampass.c +++ b/source3/auth/pampass.c @@ -110,7 +110,7 @@ static bool smb_pam_nt_status_error_handler(pam_handle_t *pamh, int pam_error, if (NT_STATUS_IS_OK(*nt_status)) { /* Complain LOUDLY */ DEBUG(0, ("smb_pam_nt_status_error_handler: PAM: BUG: PAM and NT_STATUS \ -error MISMATCH, forcing to NT_STATUS_LOGON_FAILURE")); +error MISMATCH, forcing to NT_STATUS_LOGON_FAILURE\n")); *nt_status = NT_STATUS_LOGON_FAILURE; } return False; @@ -469,7 +469,7 @@ static bool smb_pam_end(pam_handle_t *pamh, struct pam_conv *smb_pam_conv_ptr) return True; } } - DEBUG(2,("smb_pam_end: PAM: not initialised")); + DEBUG(2,("smb_pam_end: PAM: not initialised\n")); return False; }