Patchwork [1/7] Fix win32 log file location

login
register
mail settings
Submitter riku.voipio@nokia.com
Date Dec. 3, 2009, 1:56 p.m.
Message ID <37fd6f07196ff098c8a97025589a89bde5be3ce9.1259836046.git.riku.voipio@nokia.com>
Download mbox | patch
Permalink /patch/40259/
State New
Headers show

Comments

riku.voipio@nokia.com - Dec. 3, 2009, 1:56 p.m.
From: Juha Riihimäki <juha.riihimaki@nokia.com>

/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>
---
 exec.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

Patch

diff --git a/exec.c b/exec.c
index eb1ee51..3f33b08 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;