Francois Gouget : winspool.drv: Use '%u' to print GetLastError().

Alexandre Julliard julliard at wine.codeweavers.com
Thu Jan 18 06:45:23 CST 2007


Module: wine
Branch: master
Commit: 42c4114401dec7bbc3fb5e2796b0387045ab253b
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=42c4114401dec7bbc3fb5e2796b0387045ab253b

Author: Francois Gouget <fgouget at free.fr>
Date:   Thu Jan 18 11:37:51 2007 +0100

winspool.drv: Use '%u' to print GetLastError().

---

 dlls/winspool.drv/info.c |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/dlls/winspool.drv/info.c b/dlls/winspool.drv/info.c
index 90e11c2..af2c8b7 100644
--- a/dlls/winspool.drv/info.c
+++ b/dlls/winspool.drv/info.c
@@ -1488,7 +1488,7 @@ static HANDLE get_opened_printer_entry(L
                 goto end;
             }
             if (RegOpenKeyW(hkeyPrinters, printername, &hkeyPrinter) != ERROR_SUCCESS) {
-                WARN("Printer not found in Registry: '%s'\n", debugstr_w(printername));
+                WARN("Printer not found in Registry: %s\n", debugstr_w(printername));
                 RegCloseKey(hkeyPrinters);
                 SetLastError(ERROR_INVALID_PRINTER_NAME);
                 handle = 0;
@@ -2073,7 +2073,7 @@ BOOL WINAPI OpenPrinterW(LPWSTR lpPrinte
 
     /* Get the unique handle of the printer or Printserver */
     *phPrinter = get_opened_printer_entry(lpPrinterName, pDefault);
-    TRACE("returning %d with 0x%x and %p\n", *phPrinter != NULL, GetLastError(), *phPrinter);
+    TRACE("returning %d with %u and %p\n", *phPrinter != NULL, GetLastError(), *phPrinter);
     return (*phPrinter != 0);
 }
 
@@ -2905,7 +2905,7 @@ HANDLE WINAPI AddPrinterW(LPWSTR pName,
     size = DocumentPropertiesW(0, 0, pi->pPrinterName, NULL, NULL, 0);
 
     if(size < 0) {
-        FIXME("DocumentPropertiesW on printer '%s' fails\n", debugstr_w(pi->pPrinterName));
+        FIXME("DocumentPropertiesW on printer %s fails\n", debugstr_w(pi->pPrinterName));
 	size = sizeof(DEVMODEW);
     }
     if(pi->pDevMode)
@@ -2917,7 +2917,7 @@ HANDLE WINAPI AddPrinterW(LPWSTR pName,
         dmW->dmSize = size;
         if (0>DocumentPropertiesW(0,0,pi->pPrinterName,dmW,NULL,DM_OUT_BUFFER))
         {
-            WARN("DocumentPropertiesW on printer '%s' failed!\n", debugstr_w(pi->pPrinterName));
+            WARN("DocumentPropertiesW on printer %s failed!\n", debugstr_w(pi->pPrinterName));
             HeapFree(GetProcessHeap(),0,dmW);
             dmW=NULL;
         }
@@ -3370,7 +3370,7 @@ DWORD WINAPI StartDocPrinterW(HANDLE hPr
 
     if(!AddJobW(hPrinter, 1, addjob_buf, sizeof(addjob_buf), &needed))
     {
-        ERR("AddJob failed gle %08x\n", GetLastError());
+        ERR("AddJob failed gle %u\n", GetLastError());
         goto end;
     }
 
@@ -4299,7 +4299,7 @@ static BOOL WINSPOOL_GetDriverInfoFromRe
     }
 
     if(!DriverName[0] || RegOpenKeyW(hkeyDrivers, DriverName, &hkeyDriver) != ERROR_SUCCESS) {
-        ERR("Can't find driver '%s' in registry\n", debugstr_w(DriverName));
+        ERR("Can't find driver %s in registry\n", debugstr_w(DriverName));
         SetLastError(ERROR_UNKNOWN_PRINTER_DRIVER); /* ? */
         return FALSE;
     }




More information about the wine-cvs mailing list