From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53009) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UyubE-0005nY-3W for qemu-devel@nongnu.org; Mon, 15 Jul 2013 22:02:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UyubD-0006TD-AR for qemu-devel@nongnu.org; Mon, 15 Jul 2013 22:02:44 -0400 Received: from mail-pd0-x233.google.com ([2607:f8b0:400e:c02::233]:63286) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UyubD-0006T9-4g for qemu-devel@nongnu.org; Mon, 15 Jul 2013 22:02:43 -0400 Received: by mail-pd0-f179.google.com with SMTP id q10so134634pdj.10 for ; Mon, 15 Jul 2013 19:02:42 -0700 (PDT) Received: from localhost.localdomain ([114.247.222.194]) by mx.google.com with ESMTPSA id bs3sm63603001pbc.42.2013.07.15.19.02.39 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 15 Jul 2013 19:02:41 -0700 (PDT) From: Jia Liu Date: Tue, 16 Jul 2013 10:00:27 +0800 Message-Id: <1373940029-7455-3-git-send-email-proljc@gmail.com> In-Reply-To: <1373940029-7455-1-git-send-email-proljc@gmail.com> References: <1373940029-7455-1-git-send-email-proljc@gmail.com> Content-Type: text/plain; charset="utf-8" Subject: [Qemu-devel] [PATCH V2 2/4] hw/openrisc: Use stderr output instead of qemu_log List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org We should use stderr output instead of qemu_log in order to output ErrMsg onto the screen. Signed-off-by: Jia Liu --- hw/openrisc/openrisc_sim.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hw/openrisc/openrisc_sim.c b/hw/openrisc/openrisc_sim.c index f0dabb9..9f0d9be 100644 --- a/hw/openrisc/openrisc_sim.c +++ b/hw/openrisc/openrisc_sim.c @@ -82,8 +82,8 @@ static void cpu_openrisc_load_kernel(ram_addr_t ram_size, } if (kernel_size < 0) { - qemu_log("QEMU: couldn't load the kernel '%s'\n", - kernel_filename); + printf(stderr, "QEMU: couldn't load the kernel '%s'\n", + kernel_filename); exit(1); } } @@ -107,7 +107,7 @@ static void openrisc_sim_init(QEMUMachineInitArgs *args) for (n = 0; n < smp_cpus; n++) { cpu = cpu_openrisc_init(cpu_model); if (cpu == NULL) { - qemu_log("Unable to find CPU definition!\n"); + fprintf(stderr, "Unable to find CPU definition!\n"); exit(1); } qemu_register_reset(main_cpu_reset, cpu); -- 1.7.12.4 (Apple Git-37)