From patchwork Thu Dec 3 13:56:02 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: riku.voipio@nokia.com X-Patchwork-Id: 40259 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 6FA75B7B69 for ; Fri, 4 Dec 2009 09:13:15 +1100 (EST) Received: from localhost ([127.0.0.1]:43687 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NGJvE-0000QB-Mi for incoming@patchwork.ozlabs.org; Thu, 03 Dec 2009 17:13:12 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NGCAv-0001KC-3h for qemu-devel@nongnu.org; Thu, 03 Dec 2009 08:56:53 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NGCAp-0001H3-SB for qemu-devel@nongnu.org; Thu, 03 Dec 2009 08:56:52 -0500 Received: from [199.232.76.173] (port=56413 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NGCAp-0001Gw-M7 for qemu-devel@nongnu.org; Thu, 03 Dec 2009 08:56:47 -0500 Received: from smtp.nokia.com ([192.100.105.134]:42953 helo=mgw-mx09.nokia.com) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NGCAp-0008Fk-92 for qemu-devel@nongnu.org; Thu, 03 Dec 2009 08:56:47 -0500 Received: from vaebh106.NOE.Nokia.com (vaebh106.europe.nokia.com [10.160.244.32]) by mgw-mx09.nokia.com (Switch-3.3.3/Switch-3.3.3) with ESMTP id nB3DtBQR022504 for ; Thu, 3 Dec 2009 07:56:42 -0600 Received: from esebh102.NOE.Nokia.com ([172.21.138.183]) by vaebh106.NOE.Nokia.com with Microsoft SMTPSVC(6.0.3790.3959); Thu, 3 Dec 2009 15:56:40 +0200 Received: from mgw-da02.ext.nokia.com ([147.243.128.26]) by esebh102.NOE.Nokia.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.3959); Thu, 3 Dec 2009 15:56:40 +0200 Received: from localhost.localdomain (esdhcp041213.research.nokia.com [172.21.41.213]) by mgw-da02.ext.nokia.com (Switch-3.3.3/Switch-3.3.3) with ESMTP id nB3DuZp4027643; Thu, 3 Dec 2009 15:56:37 +0200 From: riku.voipio@nokia.com To: qemu-devel@nongnu.org Date: Thu, 3 Dec 2009 15:56:02 +0200 Message-Id: <37fd6f07196ff098c8a97025589a89bde5be3ce9.1259836046.git.riku.voipio@nokia.com> X-Mailer: git-send-email 1.6.3.3 In-Reply-To: References: In-Reply-To: References: MIME-Version: 1.0 X-OriginalArrivalTime: 03 Dec 2009 13:56:40.0381 (UTC) FILETIME=[70357ED0:01CA7420] X-Nokia-AV: Clean X-MIME-Autoconverted: from 8bit to quoted-printable by mgw-mx09.nokia.com id nB3DtBQR022504 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 1) X-Mailman-Approved-At: Thu, 03 Dec 2009 17:06:06 -0500 Cc: Riku Voipio , =?utf-8?q?Juha=20Riihim=C3=A4ki?= Subject: [Qemu-devel] [PATCH 1/7] Fix win32 log file location X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org From: Juha Riihimäki /tmp doesn't exist under win32. Ease the pain of win32 development slightly. From: Juha Riihimäki Signed-off-by: Riku Voipio --- exec.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) 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;