From: Joseph Sutton Date: Mon, 7 Aug 2023 04:50:04 +0000 (+1200) Subject: s3:rpc_server: Fix incomplete logging messages X-Git-Tag: tevent-0.16.0~1133 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f7e86f5045e27bb2056c80ceacc40424c733d59d;p=thirdparty%2Fsamba.git s3:rpc_server: Fix incomplete logging messages Signed-off-by: Joseph Sutton Reviewed-by: Andrew Bartlett --- diff --git a/source3/rpc_server/spoolss/srv_spoolss_nt.c b/source3/rpc_server/spoolss/srv_spoolss_nt.c index ef1051301be..9e0c9566e8d 100644 --- a/source3/rpc_server/spoolss/srv_spoolss_nt.c +++ b/source3/rpc_server/spoolss/srv_spoolss_nt.c @@ -324,7 +324,8 @@ static struct printer_handle *find_printer_index_by_hnd(struct pipes_struct *p, struct printer_handle, &status); if (!NT_STATUS_IS_OK(status)) { - DEBUG(2,("find_printer_index_by_hnd: Printer handle not found: \n")); + DEBUG(2,("find_printer_index_by_hnd: Printer handle not found: %s\n", + nt_errstr(status))); return NULL; } diff --git a/source3/rpc_server/winreg/srv_winreg_nt.c b/source3/rpc_server/winreg/srv_winreg_nt.c index 8ab0f61ebdf..67e81422e4c 100644 --- a/source3/rpc_server/winreg/srv_winreg_nt.c +++ b/source3/rpc_server/winreg/srv_winreg_nt.c @@ -55,7 +55,8 @@ static struct registry_key *find_regkey_by_hnd(struct pipes_struct *p, struct registry_key, &status); if (!NT_STATUS_IS_OK(status)) { - DEBUG(2,("find_regkey_index_by_hnd: Registry Key not found: \n")); + DEBUG(2,("find_regkey_index_by_hnd: Registry Key not found: %s\n", + nt_errstr(status))); return NULL; }