Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Km1R5-0006Lt-94 for qemu-devel@nongnu.org; Sat, 04 Oct 2008 03:20:19 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Km1R3-0006KR-MP for qemu-devel@nongnu.org; Sat, 04 Oct 2008 03:20:18 -0400 Received: from [199.232.76.173] (port=47635 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Km1R3-0006K5-Du for qemu-devel@nongnu.org; Sat, 04 Oct 2008 03:20:17 -0400 Received: from savannah.gnu.org ([199.232.41.3]:51509 helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Km1R3-0006Ia-2w for qemu-devel@nongnu.org; Sat, 04 Oct 2008 03:20:17 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1Km1R0-0007Q9-FT for qemu-devel@nongnu.org; Sat, 04 Oct 2008 07:20:15 +0000 Received: from blueswir1 by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1Km1Qx-0007Pq-30 for qemu-devel@nongnu.org; Sat, 04 Oct 2008 07:20:12 +0000 MIME-Version: 1.0 Errors-To: blueswir1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Blue Swirl Message-Id: Date: Sat, 04 Oct 2008 07:20:11 +0000 Subject: [Qemu-devel] [5413] Use qemu-log.h Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Revision: 5413 http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5413 Author: blueswir1 Date: 2008-10-04 07:20:07 +0000 (Sat, 04 Oct 2008) Log Message: ----------- Use qemu-log.h Modified Paths: -------------- trunk/darwin-user/qemu.h trunk/hw/mips_malta.c trunk/hw/mips_r4k.c trunk/hw/ppc.c trunk/hw/ppc405_boards.c trunk/hw/ppc405_uc.c trunk/hw/ppc4xx_devs.c trunk/hw/ppc_prep.c Modified: trunk/darwin-user/qemu.h =================================================================== --- trunk/darwin-user/qemu.h 2008-10-04 03:32:00 UTC (rev 5412) +++ trunk/darwin-user/qemu.h 2008-10-04 07:20:07 UTC (rev 5413) @@ -109,8 +109,7 @@ void init_paths(const char *prefix); const char *path(const char *pathname); -extern int loglevel; -extern FILE *logfile; +#include "qemu-log.h" /* commpage.c */ void commpage_init(void); Modified: trunk/hw/mips_malta.c =================================================================== --- trunk/hw/mips_malta.c 2008-10-04 03:32:00 UTC (rev 5412) +++ trunk/hw/mips_malta.c 2008-10-04 07:20:07 UTC (rev 5413) @@ -36,6 +36,7 @@ #include "sysemu.h" #include "audio/audio.h" #include "boards.h" +#include "qemu-log.h" //#define DEBUG_BOARD_INIT @@ -59,8 +60,6 @@ #define MAX_IDE_BUS 2 -extern FILE *logfile; - typedef struct { uint32_t leds; uint32_t brk; Modified: trunk/hw/mips_r4k.c =================================================================== --- trunk/hw/mips_r4k.c 2008-10-04 03:32:00 UTC (rev 5412) +++ trunk/hw/mips_r4k.c 2008-10-04 07:20:07 UTC (rev 5413) @@ -15,6 +15,7 @@ #include "sysemu.h" #include "boards.h" #include "flash.h" +#include "qemu-log.h" #ifdef TARGET_WORDS_BIGENDIAN #define BIOS_FILENAME "mips_bios.bin" @@ -35,8 +36,6 @@ static int serial_io[MAX_SERIAL_PORTS] = { 0x3f8, 0x2f8, 0x3e8, 0x2e8 }; static int serial_irq[MAX_SERIAL_PORTS] = { 4, 3, 4, 3 }; -extern FILE *logfile; - static PITState *pit; /* PIT i8254 */ /* i8254 PIT is attached to the IRQ0 at PIC i8259 */ Modified: trunk/hw/ppc.c =================================================================== --- trunk/hw/ppc.c 2008-10-04 03:32:00 UTC (rev 5412) +++ trunk/hw/ppc.c 2008-10-04 07:20:07 UTC (rev 5413) @@ -26,13 +26,11 @@ #include "qemu-timer.h" #include "sysemu.h" #include "nvram.h" +#include "qemu-log.h" //#define PPC_DEBUG_IRQ //#define PPC_DEBUG_TB -extern FILE *logfile; -extern int loglevel; - static void cpu_ppc_tb_stop (CPUState *env); static void cpu_ppc_tb_start (CPUState *env); Modified: trunk/hw/ppc405_boards.c =================================================================== --- trunk/hw/ppc405_boards.c 2008-10-04 03:32:00 UTC (rev 5412) +++ trunk/hw/ppc405_boards.c 2008-10-04 07:20:07 UTC (rev 5413) @@ -29,10 +29,8 @@ #include "sysemu.h" #include "block.h" #include "boards.h" +#include "qemu-log.h" -extern int loglevel; -extern FILE *logfile; - #define BIOS_FILENAME "ppc405_rom.bin" #undef BIOS_SIZE #define BIOS_SIZE (2048 * 1024) Modified: trunk/hw/ppc405_uc.c =================================================================== --- trunk/hw/ppc405_uc.c 2008-10-04 03:32:00 UTC (rev 5412) +++ trunk/hw/ppc405_uc.c 2008-10-04 07:20:07 UTC (rev 5413) @@ -27,10 +27,8 @@ #include "pc.h" #include "qemu-timer.h" #include "sysemu.h" +#include "qemu-log.h" -extern int loglevel; -extern FILE *logfile; - #define DEBUG_OPBA #define DEBUG_SDRAM #define DEBUG_GPIO Modified: trunk/hw/ppc4xx_devs.c =================================================================== --- trunk/hw/ppc4xx_devs.c 2008-10-04 03:32:00 UTC (rev 5412) +++ trunk/hw/ppc4xx_devs.c 2008-10-04 07:20:07 UTC (rev 5413) @@ -25,10 +25,8 @@ #include "ppc.h" #include "ppc4xx.h" #include "sysemu.h" +#include "qemu-log.h" -extern int loglevel; -extern FILE *logfile; - //#define DEBUG_MMIO //#define DEBUG_UNASSIGNED #define DEBUG_UIC Modified: trunk/hw/ppc_prep.c =================================================================== --- trunk/hw/ppc_prep.c 2008-10-04 03:32:00 UTC (rev 5412) +++ trunk/hw/ppc_prep.c 2008-10-04 07:20:07 UTC (rev 5413) @@ -31,6 +31,7 @@ #include "pci.h" #include "ppc.h" #include "boards.h" +#include "qemu-log.h" //#define HARD_DEBUG_PPC_IO //#define DEBUG_PPC_IO @@ -44,9 +45,6 @@ #define KERNEL_LOAD_ADDR 0x01000000 #define INITRD_LOAD_ADDR 0x01800000 -extern int loglevel; -extern FILE *logfile; - #if defined (HARD_DEBUG_PPC_IO) && !defined (DEBUG_PPC_IO) #define DEBUG_PPC_IO #endif