diff options
author | Max Filippov <jcmvbkbc@gmail.com> | 2014-06-21 16:14:56 +0400 |
---|---|---|
committer | Max Filippov <jcmvbkbc@gmail.com> | 2014-06-29 02:32:41 +0400 |
commit | 8488ab021ba40383f4ab3a595f006fe920737397 (patch) | |
tree | 1a5b98241920346542af0170c77ceb187d7d8e76 /hw/xtensa/xtfpga.c | |
parent | b707ab757e66e05a8447b4efe15733b10659a3dd (diff) |
hw/xtensa: replace fprintfs with error_report
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Diffstat (limited to 'hw/xtensa/xtfpga.c')
-rw-r--r-- | hw/xtensa/xtfpga.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/hw/xtensa/xtfpga.c b/hw/xtensa/xtfpga.c index 0b8a2eda06..75bc479e36 100644 --- a/hw/xtensa/xtfpga.c +++ b/hw/xtensa/xtfpga.c @@ -37,6 +37,7 @@ #include "hw/block/flash.h" #include "sysemu/blockdev.h" #include "sysemu/char.h" +#include "qemu/error-report.h" #include "bootparam.h" typedef struct LxBoardDesc { @@ -185,8 +186,9 @@ static void lx_init(const LxBoardDesc *board, MachineState *machine) for (n = 0; n < smp_cpus; n++) { cpu = cpu_xtensa_init(cpu_model); if (cpu == NULL) { - fprintf(stderr, "Unable to find CPU definition\n"); - exit(1); + error_report("unable to find CPU definition '%s'\n", + cpu_model); + exit(EXIT_FAILURE); } env = &cpu->env; @@ -227,8 +229,8 @@ static void lx_init(const LxBoardDesc *board, MachineState *machine) board->flash_size / board->flash_sector_size, 4, 0x0000, 0x0000, 0x0000, 0x0000, be); if (flash == NULL) { - fprintf(stderr, "Unable to mount pflash\n"); - exit(1); + error_report("unable to mount pflash\n"); + exit(EXIT_FAILURE); } } |