diff options
author | Jon TURNEY <jon.turney@dronecode.org.uk> | 2013-04-10 18:30:39 +0100 |
---|---|---|
committer | Jon TURNEY <jon.turney@dronecode.org.uk> | 2013-04-10 18:30:39 +0100 |
commit | 0b59716833da370c85c457d0670871525bd1a990 (patch) | |
tree | 02017b8d2aa3c97e4b0061babb25c4c9f0dca4cd | |
parent | 596da6c7f04b071380b0a3e256121fa6bd7d3568 (diff) |
Fix several format/type cast issues with debug output in winwin32rootlesswndproc.c
Serveral pieces of debug outut under CYGMULTIWINDOW_DEBUG cast a pointer to an
(int) and then use a %08x printf format.
Use "%p" format for 64-bit portability.
-rw-r--r-- | hw/xwin/winwin32rootlesswndproc.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/hw/xwin/winwin32rootlesswndproc.c b/hw/xwin/winwin32rootlesswndproc.c index abb37fc45..8261e61c1 100644 --- a/hw/xwin/winwin32rootlesswndproc.c +++ b/hw/xwin/winwin32rootlesswndproc.c @@ -833,24 +833,24 @@ winMWExtWMWindowProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam) if (!(pWinPos->flags & SWP_NOZORDER)) { if (pRLWinPriv->fRestackingNow || pScreenPriv->fRestacking) { #if CYGMULTIWINDOW_DEBUG - winDebug("Win %08x is now restacking.\n", - (unsigned int) pRLWinPriv); + winDebug("Win %p is now restacking.\n", + pRLWinPriv); #endif break; } if (winIsInternalWMRunning(pScreenInfo) || IsRaiseOnClick(pWin)) { #if CYGMULTIWINDOW_DEBUG - winDebug("Win %08x has WINDOWSWM_RAISE_ON_CLICK.\n", - (unsigned int) pRLWinPriv); + winDebug("Win %p has WINDOWSWM_RAISE_ON_CLICK.\n", + pRLWinPriv); #endif break; } #if CYGMULTIWINDOW_DEBUG - winDebug("Win %08x forbid to change z order (%08x).\n", - (unsigned int) pRLWinPriv, - (unsigned int) pWinPos->hwndInsertAfter); + winDebug("Win %p forbid to change z order (%p).\n", + pRLWinPriv, + pWinPos->hwndInsertAfter); #endif pWinPos->flags |= SWP_NOZORDER; } |