]> Git Repo - qemu.git/commitdiff
Fix win32 log file location
authorJuha Riihimäki <[email protected]>
Thu, 3 Dec 2009 13:56:02 +0000 (15:56 +0200)
committerAurelien Jarno <[email protected]>
Fri, 18 Dec 2009 22:23:56 +0000 (23:23 +0100)
/tmp doesn't exist under win32. Ease the pain of win32 development slightly.

From: Juha Riihimäki <[email protected]>
Signed-off-by: Riku Voipio <[email protected]>
Signed-off-by: Aurelien Jarno <[email protected]>
exec.c

diff --git a/exec.c b/exec.c
index 7b7fb5ba00ca7a03ee7c71d70aba0c183d52dfaa..44c34e6422daf74e8ad9209c4cb346b49e486aab 100644 (file)
--- 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;
This page took 0.03283 seconds and 4 git commands to generate.