From 729155a42826660dcc0bfa31b03ebd13f2506470 Mon Sep 17 00:00:00 2001 From: Gerald Carter Date: Thu, 23 Sep 2004 19:44:04 +0000 Subject: r2570: minor fix with Rob's patch. use dos_errstr() instead of W_ERROR_V() when using %s in the format string (This used to be commit b26e4dbd7fd616e672331fd36441b8bf74157904) --- source3/printing/nt_printing.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source3/printing/nt_printing.c b/source3/printing/nt_printing.c index f047daabee..3d664d25b8 100644 --- a/source3/printing/nt_printing.c +++ b/source3/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); -- cgit