summaryrefslogtreecommitdiff
path: root/vl.c
diff options
context:
space:
mode:
authorBlue Swirl <blauwirbel@gmail.com>2009-09-27 20:03:56 +0000
committerBlue Swirl <blauwirbel@gmail.com>2009-09-27 20:03:56 +0000
commit20889d4ef7239cc41511c2bf8faf0b4a1da20852 (patch)
treeb12c6045aee5e6078d46fd58820cbe390bcdb7f5 /vl.c
parent032e51d7f0bbab23b41f84ad7be8c3040ce24070 (diff)
downloadqemu-20889d4ef7239cc41511c2bf8faf0b4a1da20852.tar.gz
Win32: avoid a warning
GetLastError() returns a DWORD. Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'vl.c')
-rw-r--r--vl.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/vl.c b/vl.c
index 27c6458e07..7bfd415931 100644
--- a/vl.c
+++ b/vl.c
@@ -1445,7 +1445,7 @@ static int win32_start_timer(struct qemu_alarm_timer *t)
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;
@@ -1483,7 +1483,7 @@ static void win32_rearm_timer(struct qemu_alarm_timer *t)
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);
@@ -3381,7 +3381,7 @@ static int qemu_event_init(void)
{
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);
@@ -3391,7 +3391,7 @@ static int qemu_event_init(void)
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);
}