diff options
author | Peter Maydell | 2020-03-21 20:44:40 +0100 |
---|---|---|
committer | Peter Maydell | 2020-03-21 20:44:40 +0100 |
commit | a0e7c2d8ed6f0d594dbf5380790bcf851c84140e (patch) | |
tree | eb4690cd31859bdc6ccfcedfd367ab4cd6d35a8e | |
parent | Merge remote-tracking branch 'remotes/vivier2/tags/linux-user-for-5.0-pull-re... (diff) | |
parent | device_tree: Add info message when dumping dtb to file (diff) | |
download | qemu-a0e7c2d8ed6f0d594dbf5380790bcf851c84140e.tar.gz qemu-a0e7c2d8ed6f0d594dbf5380790bcf851c84140e.tar.xz qemu-a0e7c2d8ed6f0d594dbf5380790bcf851c84140e.zip |
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.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/device_tree.c b/device_tree.c index f8b46b3c73..bba6cc2164 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); } } |