flags);
if (!data->timerId) {
- fprintf(stderr, "Failed to initialize win32 alarm timer: %d\n",
+ fprintf(stderr, "Failed to initialize win32 alarm timer: %ld\n",
GetLastError());
timeEndPeriod(data->period);
return -1;
TIME_ONESHOT | TIME_PERIODIC);
if (!data->timerId) {
- fprintf(stderr, "Failed to re-arm win32 alarm timer %d\n",
+ fprintf(stderr, "Failed to re-arm win32 alarm timer %ld\n",
GetLastError());
timeEndPeriod(data->period);
{
qemu_event_handle = CreateEvent(NULL, FALSE, FALSE, NULL);
if (!qemu_event_handle) {
- fprintf(stderr, "Failed CreateEvent: %d\n", GetLastError());
+ fprintf(stderr, "Failed CreateEvent: %ld\n", GetLastError());
return -1;
}
qemu_add_wait_object(qemu_event_handle, dummy_event_handler, NULL);
static void qemu_event_increment(void)
{
if (!SetEvent(qemu_event_handle)) {
- fprintf(stderr, "qemu_event_increment: SetEvent failed: %d\n",
+ fprintf(stderr, "qemu_event_increment: SetEvent failed: %ld\n",
GetLastError());
exit (1);
}