1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

s3:winbindd: Add missing newlines to logging messages

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Joseph Sutton 2023-08-07 16:51:21 +12:00 committed by Andrew Bartlett
parent 90a3aca432
commit ac0f599cab
7 changed files with 17 additions and 17 deletions

View File

@ -100,12 +100,12 @@ static NTSTATUS idmap_autorid_addrange_action(struct db_context *db,
requested_rangenum = range->rangenum;
if (db == NULL) {
DEBUG(3, ("Invalid database argument: NULL"));
DEBUG(3, ("Invalid database argument: NULL\n"));
return NT_STATUS_INVALID_PARAMETER;
}
if (range == NULL) {
DEBUG(3, ("Invalid range argument: NULL"));
DEBUG(3, ("Invalid range argument: NULL\n"));
return NT_STATUS_INVALID_PARAMETER;
}
@ -355,7 +355,7 @@ static NTSTATUS idmap_autorid_getrange_int(struct db_context *db,
status = idmap_autorid_loadconfig(db, &globalcfg);
if (!NT_STATUS_IS_OK(status)) {
DEBUG(1, ("Failed to read global configuration"));
DEBUG(1, ("Failed to read global configuration\n"));
goto done;
}
range->low_id = globalcfg.minvalue

View File

@ -942,7 +942,7 @@ again:
}
filter = talloc_asprintf_append_buffer(filter, "))");
CHECK_ALLOC_DONE(filter);
DEBUG(10, ("Filter: [%s]", filter));
DEBUG(10, ("Filter: [%s]\n", filter));
} else {
bidx = 0;
idx = 1;
@ -1006,7 +1006,7 @@ again:
map = idmap_find_map_by_sid(&ids[bidx], &sid);
if (!map) {
DEBUG(2, ("WARNING: couldn't find entry sid (%s) "
"in ids", sidstr));
"in ids\n", sidstr));
TALLOC_FREE(sidstr);
continue;
}

View File

@ -3251,7 +3251,7 @@ bool initialize_winbindd_cache(void)
}
if (unlink(db_path) == -1) {
DBG_ERR("initialize_winbindd_cache: unlink %s failed %s ",
DBG_ERR("initialize_winbindd_cache: unlink %s failed %s\n",
db_path,
strerror(errno) );
TALLOC_FREE(db_path);

View File

@ -3326,7 +3326,7 @@ void winbind_msg_ip_dropped(struct messaging_context *msg_ctx,
*/
slash = strchr(addr, '/');
if (slash == NULL) {
DEBUG(1, ("invalid msg_ip_dropped message: %s",
DEBUG(1, ("invalid msg_ip_dropped message: %s\n",
addr));
return;
}

View File

@ -1252,7 +1252,7 @@ static bool calculate_next_machine_pwd_change(const char *domain,
NULL);
if (pw == NULL) {
DEBUG(0,("cannot fetch own machine password ????"));
DEBUG(0,("cannot fetch own machine password ????\n"));
return false;
}
@ -1984,7 +1984,7 @@ bool winbindd_setup_sig_term_handler(bool parent)
winbindd_sig_term_handler,
is_parent);
if (!se) {
DEBUG(0,("failed to setup SIGTERM handler"));
DEBUG(0,("failed to setup SIGTERM handler\n"));
talloc_free(is_parent);
return false;
}
@ -1995,7 +1995,7 @@ bool winbindd_setup_sig_term_handler(bool parent)
winbindd_sig_term_handler,
is_parent);
if (!se) {
DEBUG(0,("failed to setup SIGINT handler"));
DEBUG(0,("failed to setup SIGINT handler\n"));
talloc_free(is_parent);
return false;
}
@ -2006,7 +2006,7 @@ bool winbindd_setup_sig_term_handler(bool parent)
winbindd_sig_term_handler,
is_parent);
if (!se) {
DEBUG(0,("failed to setup SIGINT handler"));
DEBUG(0,("failed to setup SIGINT handler\n"));
talloc_free(is_parent);
return false;
}

View File

@ -465,14 +465,14 @@ static NTSTATUS set_remote_addresses(struct dcesrv_connection *conn,
ret = getpeername(sock, sar, &sa_len);
if (ret != 0) {
status = map_nt_error_from_unix(ret);
DBG_ERR("getpeername failed: %s", nt_errstr(status));
DBG_ERR("getpeername failed: %s\n", nt_errstr(status));
return status;
}
ret = tsocket_address_bsd_from_sockaddr(conn, sar, sa_len, &remote);
if (ret != 0) {
status = map_nt_error_from_unix(ret);
DBG_ERR("tsocket_address_bsd_from_sockaddr failed: %s",
DBG_ERR("tsocket_address_bsd_from_sockaddr failed: %s\n",
nt_errstr(status));
return status;
}
@ -481,14 +481,14 @@ static NTSTATUS set_remote_addresses(struct dcesrv_connection *conn,
ret = getsockname(sock, sar, &sa_len);
if (ret != 0) {
status = map_nt_error_from_unix(ret);
DBG_ERR("getsockname failed: %s", nt_errstr(status));
DBG_ERR("getsockname failed: %s\n", nt_errstr(status));
return status;
}
ret = tsocket_address_bsd_from_sockaddr(conn, sar, sa_len, &local);
if (ret != 0) {
status = map_nt_error_from_unix(ret);
DBG_ERR("tsocket_address_bsd_from_sockaddr failed: %s",
DBG_ERR("tsocket_address_bsd_from_sockaddr failed: %s\n",
nt_errstr(status));
return status;
}
@ -541,7 +541,7 @@ enum winbindd_result winbindd_dual_ndrcmd(struct winbindd_domain *domain,
mem_ctx = talloc_stackframe();
if (mem_ctx == NULL) {
DBG_ERR("No memory");
DBG_ERR("No memory\n");
return WINBINDD_ERROR;
}

View File

@ -2169,7 +2169,7 @@ static void log_authentication(
client_name,
client_pid);
if (ui->auth_description == NULL) {
DBG_ERR("OOM Unable to create auth_description");
DBG_ERR("OOM Unable to create auth_description\n");
}
ui->client.account_name = user_name;
ui->client.domain_name = domain_name;