Patchwork [2/2] hw/openrisc: Use stderr output instead of qemu_log

login
register
mail settings
Submitter Jia Liu
Date July 15, 2013, 9:09 a.m.
Message ID <1373879359-12803-3-git-send-email-proljc@gmail.com>
Download mbox | patch
Permalink /patch/258963/
State New
Headers show

Comments

Jia Liu - July 15, 2013, 9:09 a.m.
Here should be stderr output instead of qemu_log.

Signed-off-by: Jia Liu <proljc@gmail.com>
---
 hw/openrisc/openrisc_sim.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/hw/openrisc/openrisc_sim.c b/hw/openrisc/openrisc_sim.c
index 924438b..26bff75 100644
--- a/hw/openrisc/openrisc_sim.c
+++ b/hw/openrisc/openrisc_sim.c
@@ -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);