diff options
author | Stefan Weil <weil@mail.berlios.de> | 2011-07-15 21:38:14 +0200 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2011-08-21 15:33:33 +0000 |
commit | 59ad3403c29e6b2b4f7a2f3c20d1c3fd093565ec (patch) | |
tree | 2ff1bd3cae1cb89cee36c6ecde9c4d60ba79351b | |
parent | 0e0167bacc405f9ba5b056d7d41264ccd0b000ca (diff) | |
download | qemu-59ad3403c29e6b2b4f7a2f3c20d1c3fd093565ec.zip qemu-59ad3403c29e6b2b4f7a2f3c20d1c3fd093565ec.tar.gz qemu-59ad3403c29e6b2b4f7a2f3c20d1c3fd093565ec.tar.bz2 |
w32: Fix format string regression
Commit 953ffe0f935f40c0d6061d69e76e0339393b54f8
introduced FMT_pid which is wrong for w32 and w64 getpid():
those getpid() implementations always return an int value.
Signed-off-by: Stefan Weil <weil@mail.berlios.de>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
-rw-r--r-- | os-win32.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -258,7 +258,7 @@ int qemu_create_pidfile(const char *filename) if (file == INVALID_HANDLE_VALUE) { return -1; } - len = snprintf(buffer, sizeof(buffer), FMT_pid "\n", getpid()); + len = snprintf(buffer, sizeof(buffer), "%d\n", getpid()); ret = WriteFileEx(file, (LPCVOID)buffer, (DWORD)len, &overlap, NULL); if (ret == 0) { |