From ce9863b7978976492efc2b57589516f3fcae79cb Mon Sep 17 00:00:00 2001 From: Cédric Le Goater Date: Tue, 2 Aug 2016 19:38:00 +0200 Subject: hw/ppc: use error_report instead of fprintf Signed-off-by: Cédric Le Goater Signed-off-by: David Gibson --- include/hw/ppc/fdt.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'include') diff --git a/include/hw/ppc/fdt.h b/include/hw/ppc/fdt.h index fff3e1b577..2e5c61af14 100644 --- a/include/hw/ppc/fdt.h +++ b/include/hw/ppc/fdt.h @@ -10,11 +10,13 @@ #ifndef PPC_FDT_H #define PPC_FDT_H -#define _FDT(exp) \ - do { \ +#include "qemu/error-report.h" + +#define _FDT(exp) \ + do { \ int ret = (exp); \ if (ret < 0) { \ - fprintf(stderr, "qemu: error creating device tree: %s: %s\n", \ + error_report("error creating device tree: %s: %s", \ #exp, fdt_strerror(ret)); \ exit(1); \ } \ -- cgit v1.2.3-55-g7522