summaryrefslogtreecommitdiff
path: root/exec.c
diff options
context:
space:
mode:
authorJuha Riihimäki <juha.riihimaki@nokia.com>2009-12-03 15:56:02 +0200
committerAurelien Jarno <aurelien@aurel32.net>2009-12-18 23:23:56 +0100
commitcec0fba0b3b7134ad4167b0e43d087943fa30a2c (patch)
tree4b329772d739f760d4db60f87e857eaa6b75f1ef /exec.c
parent993b81d11123593f86c9c960113ec83947b9f1e5 (diff)
downloadqemu-cec0fba0b3b7134ad4167b0e43d087943fa30a2c.tar.gz
qemu-cec0fba0b3b7134ad4167b0e43d087943fa30a2c.tar.bz2
qemu-cec0fba0b3b7134ad4167b0e43d087943fa30a2c.zip
Fix win32 log file location
/tmp doesn't exist under win32. Ease the pain of win32 development slightly. From: Juha Riihimäki <juha.riihimaki@nokia.com> Signed-off-by: Riku Voipio <riku.voipio@nokia.com> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Diffstat (limited to 'exec.c')
-rw-r--r--exec.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/exec.c b/exec.c
index 7b7fb5ba00..44c34e6422 100644
--- a/exec.c
+++ b/exec.c
@@ -192,7 +192,11 @@ static int io_mem_watch;
#endif
/* log support */
+#ifdef WIN32
+static const char *logfilename = "qemu.log";
+#else
static const char *logfilename = "/tmp/qemu.log";
+#endif
FILE *logfile;
int loglevel;
static int log_append = 0;