From 1e8b27ca853d26e8854dc1a3e7ce88605e1673b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juha=20Riihim=C3=A4ki?= Date: Thu, 3 Dec 2009 15:56:02 +0200 Subject: [PATCH] Fix win32 log file location MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit /tmp doesn't exist under win32. Ease the pain of win32 development slightly. From: Juha Riihimäki Signed-off-by: Riku Voipio Signed-off-by: Aurelien Jarno --- exec.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/exec.c b/exec.c index 7b7fb5ba0..44c34e642 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;