]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
r2570: minor fix with Rob's patch. use dos_errstr() instead of W_ERROR_V() when...
authorGerald Carter <jerry@samba.org>
Thu, 23 Sep 2004 19:44:04 +0000 (19:44 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 15:52:46 +0000 (10:52 -0500)
source/printing/nt_printing.c

index f047daabee7ae639cfd49750cdd3d73ac6bddc46..3d664d25b86f8970b63be7161bf80db043347a98 100644 (file)
@@ -380,7 +380,7 @@ BOOL nt_printing_init(void)
 
        win_rc = check_published_printers();
        if (!W_ERROR_IS_OK(win_rc))
-               DEBUG(3, ("error checking published printers: %s\n", W_ERROR_V(win_rc)));
+               DEBUG(0, ("nt_printing_init: error checking published printers: %s\n", dos_errstr(win_rc)));
 
        return True;
 }
@@ -2870,7 +2870,7 @@ WERROR check_published_printers(void)
 
                win_rc = nt_printer_publish_ads(ads, printer);
                if (!W_ERROR_IS_OK(win_rc))
-                       DEBUG(3, ("error publishing %s: %s\n", printer->info_2->sharename, W_ERROR_V(win_rc)));
+                       DEBUG(3, ("error publishing %s: %s\n", printer->info_2->sharename, dos_errstr(win_rc)));
 
        next:
                free_a_printer(&printer, 2);