]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:rpc_server: Fix incomplete logging messages
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Mon, 7 Aug 2023 04:50:04 +0000 (16:50 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 8 Aug 2023 04:39:38 +0000 (04:39 +0000)
Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source3/rpc_server/spoolss/srv_spoolss_nt.c
source3/rpc_server/winreg/srv_winreg_nt.c

index ef1051301be388318f057e3a75b5963c37edebc9..9e0c9566e8d23dbaa6f65a8a380cccd8ad626a6c 100644 (file)
@@ -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;
        }
 
index 8ab0f61ebdf259a6c3956e96767dac90251e35d9..67e81422e4cc0354673eaf5c67a9a3269c20348e 100644 (file)
@@ -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;
        }