hw/xwin: printf format fix in winProcessXEventsTimeout()

remainingTime is computed as a long int, so use %ld format specifier

Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
Reviewed-by: Colin Harrison <colin.harrison@virgin.net>
This commit is contained in:
Jon TURNEY 2015-02-06 20:42:54 +00:00
parent 5b6f511c2f
commit 98798fcf0d

View File

@ -104,7 +104,7 @@ winProcessXEventsTimeout(HWND hwnd, Window iWindow, Display * pDisplay,
remainingTime = dwStopTime - GetTickCount(); remainingTime = dwStopTime - GetTickCount();
tv.tv_sec = remainingTime / 1000; tv.tv_sec = remainingTime / 1000;
tv.tv_usec = (remainingTime % 1000) * 1000; tv.tv_usec = (remainingTime % 1000) * 1000;
winDebug("winProcessXEventsTimeout () - %d milliseconds left\n", winDebug("winProcessXEventsTimeout () - %ld milliseconds left\n",
remainingTime); remainingTime);
/* Break out if no time left */ /* Break out if no time left */