From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36339) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V1BvA-0004eQ-Jc for qemu-devel@nongnu.org; Mon, 22 Jul 2013 04:56:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V1Bv9-0003uQ-0V for qemu-devel@nongnu.org; Mon, 22 Jul 2013 04:56:44 -0400 Received: from mail-pb0-x22e.google.com ([2607:f8b0:400e:c01::22e]:54696) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V1Bv8-0003uB-QO for qemu-devel@nongnu.org; Mon, 22 Jul 2013 04:56:42 -0400 Received: by mail-pb0-f46.google.com with SMTP id rq2so6817563pbb.19 for ; Mon, 22 Jul 2013 01:56:42 -0700 (PDT) Received: from localhost.localdomain ([198.71.88.170]) by mx.google.com with ESMTPSA id pq1sm34635306pbb.26.2013.07.22.01.56.39 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 22 Jul 2013 01:56:40 -0700 (PDT) From: Jia Liu Date: Mon, 22 Jul 2013 16:56:20 +0800 Message-Id: <1374483382-12141-3-git-send-email-proljc@gmail.com> In-Reply-To: <1374483382-12141-1-git-send-email-proljc@gmail.com> References: <1374483382-12141-1-git-send-email-proljc@gmail.com> Content-Type: text/plain; charset="utf-8" Subject: [Qemu-devel] [PATCH v3 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 | 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)