aboutsummaryrefslogtreecommitdiff
path: root/include/hw/ppc/fdt.h
diff options
context:
space:
mode:
authorCédric Le Goater <clg@kaod.org>2016-08-02 19:38:00 +0200
committerDavid Gibson <david@gibson.dropbear.id.au>2016-09-07 12:40:12 +1000
commitce9863b7978976492efc2b57589516f3fcae79cb (patch)
tree7f2ec7698ae5e094bd9a76f266620d05ed1938b2 /include/hw/ppc/fdt.h
parent15848410af5caccb7ca419654e46b0ce42d6bf4b (diff)
downloadqemu-ce9863b7978976492efc2b57589516f3fcae79cb.zip
qemu-ce9863b7978976492efc2b57589516f3fcae79cb.tar.gz
qemu-ce9863b7978976492efc2b57589516f3fcae79cb.tar.bz2
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/hw/ppc/fdt.h')
-rw-r--r--include/hw/ppc/fdt.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/include/hw/ppc/fdt.h b/include/hw/ppc/fdt.h
index fff3e1b..2e5c61a 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); \
} \