diff options
Diffstat (limited to 'include/hw/ppc/fdt.h')
-rw-r--r-- | include/hw/ppc/fdt.h | 8 |
1 files changed, 5 insertions, 3 deletions
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); \ } \ |