mirror of
https://github.com/izzy2lost/xemu.git
synced 2026-07-06 00:20:22 -07:00
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>
This commit is contained in:
+6
-1
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user