aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2020-03-21 19:44:40 +0000
committerPeter Maydell <peter.maydell@linaro.org>2020-03-21 19:44:40 +0000
commita0e7c2d8ed6f0d594dbf5380790bcf851c84140e (patch)
treeeb4690cd31859bdc6ccfcedfd367ab4cd6d35a8e
parent52a96afaa23d883d281bc7b95b9e69db7d6d3d3f (diff)
parent9f252c7c88eacbf21dadcfe117b0d08f2e88ceeb (diff)
downloadqemu-a0e7c2d8ed6f0d594dbf5380790bcf851c84140e.zip
qemu-a0e7c2d8ed6f0d594dbf5380790bcf851c84140e.tar.gz
qemu-a0e7c2d8ed6f0d594dbf5380790bcf851c84140e.tar.bz2
Merge remote-tracking branch 'remotes/alistair/tags/pull-dtc-next-20200320-1' into staging
DTC patches for 5.0 # gpg: Signature made Fri 20 Mar 2020 21:56:31 GMT # gpg: using RSA key F6C4AC46D4934868D3B8CE8F21E10D29DF977054 # gpg: Good signature from "Alistair Francis <alistair@alistair23.me>" [full] # Primary key fingerprint: F6C4 AC46 D493 4868 D3B8 CE8F 21E1 0D29 DF97 7054 * remotes/alistair/tags/pull-dtc-next-20200320-1: device_tree: Add info message when dumping dtb to file Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
-rw-r--r--device_tree.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/device_tree.c b/device_tree.c
index f8b46b3..bba6cc2 100644
--- a/device_tree.c
+++ b/device_tree.c
@@ -530,7 +530,12 @@ void qemu_fdt_dumpdtb(void *fdt, int size)
if (dumpdtb) {
/* Dump the dtb to a file and quit */
- exit(g_file_set_contents(dumpdtb, fdt, size, NULL) ? 0 : 1);
+ if (g_file_set_contents(dumpdtb, fdt, size, NULL)) {
+ info_report("dtb dumped to %s. Exiting.", dumpdtb);
+ exit(0);
+ }
+ error_report("%s: Failed dumping dtb to %s", __func__, dumpdtb);
+ exit(1);
}
}