diff options
author | Cédric Le Goater <clg@kaod.org> | 2016-08-02 19:38:00 +0200 |
---|---|---|
committer | David Gibson <david@gibson.dropbear.id.au> | 2016-09-07 12:40:12 +1000 |
commit | ce9863b7978976492efc2b57589516f3fcae79cb (patch) | |
tree | 7f2ec7698ae5e094bd9a76f266620d05ed1938b2 /include | |
parent | 15848410af5caccb7ca419654e46b0ce42d6bf4b (diff) |
hw/ppc: use error_report instead of fprintf
Signed-off-by: Cédric Le Goater <clg@kaod.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'include')
-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); \ } \ |