summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon TURNEY <jon.turney@dronecode.org.uk>2010-10-06 11:50:28 +0100
committerJon TURNEY <jon.turney@dronecode.org.uk>2012-01-15 13:56:12 +0000
commitc3a76df07805796765f484c0afc018cb7d1926e8 (patch)
treea5779dd578a36f1266811205423450ffbe009bf5
parent45b5f88393603bb865e38823770fd07ba74e43de (diff)
Improve winDebugWin32Message formatting
Conflicts: hw/xwin/winmsg.c
-rw-r--r--hw/xwin/winmsg.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/hw/xwin/winmsg.c b/hw/xwin/winmsg.c
index 278355747..9df2c2acc 100644
--- a/hw/xwin/winmsg.c
+++ b/hw/xwin/winmsg.c
@@ -155,8 +155,7 @@ void winDebugWin32Message(const char* function, HWND hwnd, UINT message, WPARAM
{
if (force || getenv("WIN_DEBUG_MESSAGES") || getenv("WIN_DEBUG_WM_USER"))
{
- winDebug("%s - Message WM_USER + %d hwnd 0x%x wParam 0x%x lParam 0x%x\n",
- function, message - WM_USER, hwnd, wParam, lParam);
+ winDebug("%s - WM_USER + %d (hwnd 0x%x wParam 0x%x lParam 0x%x)\n", function, message - WM_USER, hwnd, wParam, lParam);
}
}
else if (message < MESSAGE_NAMES_LEN && MESSAGE_NAMES[message])
@@ -167,8 +166,7 @@ void winDebugWin32Message(const char* function, HWND hwnd, UINT message, WPARAM
buffer[63] = 0;
if (force || getenv("WIN_DEBUG_MESSAGES") || getenv(buffer))
{
- winDebug("%s - Message %-20s hwnd 0x%x wParam 0x%x lParam 0x%x\n",
- function, MESSAGE_NAMES[message], hwnd, wParam, lParam);
+ winDebug("%s - %s (hwnd 0x%x wParam 0x%x lParam 0x%x)\n", function, MESSAGE_NAMES[message], hwnd, wParam, lParam);
}
}
}