diff --git a/hw/xwin/winclipboard/wndproc.c b/hw/xwin/winclipboard/wndproc.c index 1ea5bc6b7..229a94879 100644 --- a/hw/xwin/winclipboard/wndproc.c +++ b/hw/xwin/winclipboard/wndproc.c @@ -195,7 +195,7 @@ winClipboardWindowProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam) case WM_CHANGECBCHAIN: { winDebug("winClipboardWindowProc - WM_CHANGECBCHAIN: wParam(%x) " - "lParam(%x) s_hwndNextViewer(%x)\n", + "lParam(%x) s_hwndNextViewer(%p)\n", wParam, lParam, s_hwndNextViewer); if ((HWND) wParam == s_hwndNextViewer) { @@ -236,7 +236,7 @@ winClipboardWindowProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam) first = GetClipboardViewer(); /* Get handle to first viewer in chain. */ if (first == hwnd) return 0; /* Make sure it's not us! */ - winDebug(" WM_WM_REINIT: Replacing us(%x) with %x at head " + winDebug(" WM_WM_REINIT: Replacing us(%p) with %p at head " "of chain\n", hwnd, s_hwndNextViewer); s_fCBCInitialized = FALSE; ChangeClipboardChain(hwnd, s_hwndNextViewer); diff --git a/hw/xwin/winmsg.c b/hw/xwin/winmsg.c index 56e7a097c..79399a40f 100644 --- a/hw/xwin/winmsg.c +++ b/hw/xwin/winmsg.c @@ -158,7 +158,7 @@ winDebugWin32Message(const char *function, HWND hwnd, UINT message, getenv("WIN_DEBUG_WM_USER")) { winDebug("%s - Message WM_USER + %d\n", function, message - WM_USER); - winDebug("\thwnd 0x%x wParam 0x%x lParam 0x%x\n", hwnd, wParam, + winDebug("\thwnd 0x%p wParam 0x%x lParam 0x%x\n", hwnd, wParam, lParam); } } @@ -170,7 +170,7 @@ winDebugWin32Message(const char *function, HWND hwnd, UINT message, buffer[63] = 0; if (force || getenv("WIN_DEBUG_MESSAGES") || getenv(buffer)) { winDebug("%s - Message %s\n", function, MESSAGE_NAMES[message]); - winDebug("\thwnd 0x%x wParam 0x%x lParam 0x%x\n", hwnd, wParam, + winDebug("\thwnd 0x%p wParam 0x%x lParam 0x%x\n", hwnd, wParam, lParam); } }