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:
parent
5b6f511c2f
commit
98798fcf0d
|
@ -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 */
|
||||||
|
|
Loading…
Reference in New Issue
Block a user