From cec0fba0b3b7134ad4167b0e43d087943fa30a2c 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: 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(+) (limited to 'exec.c') 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; -- cgit v1.2.3