From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44891) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V1aHT-00064a-E4 for qemu-devel@nongnu.org; Tue, 23 Jul 2013 06:57:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V1aHR-0004mF-Ed for qemu-devel@nongnu.org; Tue, 23 Jul 2013 06:57:23 -0400 Received: from mail-pa0-x231.google.com ([2607:f8b0:400e:c03::231]:41813) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V1a8S-0000pt-Gv for qemu-devel@nongnu.org; Tue, 23 Jul 2013 06:48:04 -0400 Received: by mail-pa0-f49.google.com with SMTP id bi5so4154300pad.8 for ; Tue, 23 Jul 2013 03:48:03 -0700 (PDT) From: Jia Liu Date: Tue, 23 Jul 2013 18:47:37 +0800 Message-Id: <1374576458-22808-3-git-send-email-proljc@gmail.com> In-Reply-To: <1374576458-22808-1-git-send-email-proljc@gmail.com> References: <1374576458-22808-1-git-send-email-proljc@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="utf-8" Subject: [Qemu-devel] [PULL 2/3] 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 Cc: peter.maydell@linaro.org, aliguori@us.ibm.com, afaerber@suse.de, anthony@codemonkey.ws We should use stderr output instead of qemu_log in order to output ErrMsg onto the screen. Signed-off-by: Jia Liu Reviewed-by: Peter Maydell Reviewed-by: Andreas Färber --- hw/openrisc/openrisc_sim.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/openrisc/openrisc_sim.c b/hw/openrisc/openrisc_sim.c index 250f5b5..a08f27c 100644 --- a/hw/openrisc/openrisc_sim.c +++ b/hw/openrisc/openrisc_sim.c @@ -82,7 +82,7 @@ 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", + fprintf(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)