From: Gerald Carter Date: Thu, 23 Sep 2004 19:44:04 +0000 (+0000) Subject: r2570: minor fix with Rob's patch. use dos_errstr() instead of W_ERROR_V() when... X-Git-Tag: samba-misc-tags/initial-v3-0-unstable~5765 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b26e4dbd7fd616e672331fd36441b8bf74157904;p=thirdparty%2Fsamba.git r2570: minor fix with Rob's patch. use dos_errstr() instead of W_ERROR_V() when using %s in the format string --- diff --git a/source/printing/nt_printing.c b/source/printing/nt_printing.c index f047daabee7..3d664d25b86 100644 --- a/source/printing/nt_printing.c +++ b/source/printing/nt_printing.c @@ -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);