From 023df7effb247900c2c0748ce494f06dad00f0c3 Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Tue, 29 Sep 2015 15:42:58 +0200 Subject: Use correct type for format string --- win/rfb_win32/WMHooks.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/win/rfb_win32/WMHooks.cxx b/win/rfb_win32/WMHooks.cxx index d59a9ce5..2a3da0d9 100644 --- a/win/rfb_win32/WMHooks.cxx +++ b/win/rfb_win32/WMHooks.cxx @@ -265,7 +265,9 @@ WMHooksThread::run() { NotifyHooksCursor((HCURSOR)msg.lParam); #ifdef _DEBUG } else if (msg.message == diagnosticMsg) { - vlog.info("DIAG msg=%x(%d) wnd=%lx", msg.wParam, msg.wParam, msg.lParam); + vlog.info("DIAG msg=%x(%d) wnd=%lx", + (unsigned)msg.wParam, (int)msg.wParam, + (unsigned long)msg.lParam); #endif } } -- cgit v1.2.3