aboutsummaryrefslogtreecommitdiff
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
commit1e8b27ca853d26e8854dc1a3e7ce88605e1673b9 (patch)
tree4b329772d739f760d4db60f87e857eaa6b75f1ef /exec.c
parent2dc3f77c86b6c3782f057af1d935ccddc052bed5 (diff)
downloadqemu-1e8b27ca853d26e8854dc1a3e7ce88605e1673b9.zip
qemu-1e8b27ca853d26e8854dc1a3e7ce88605e1673b9.tar.gz
qemu-1e8b27ca853d26e8854dc1a3e7ce88605e1673b9.tar.bz2
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 7b7fb5b..44c34e6 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;