Skip to content

Commit b0ae5b6

Browse files
sourabhjainsmpe
authored andcommitted
powerpc/kexec_file: print error string on usable memory property update failure
Print the FDT error description along with the error message if failed to set the "linux,drconf-usable-memory" property in the kdump kernel's FDT. Signed-off-by: Sourabh Jain <[email protected]> Acked-by: Hari Bathini <[email protected]> Signed-off-by: Michael Ellerman <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 388defd commit b0ae5b6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

arch/powerpc/kexec/file_load_64.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -690,7 +690,8 @@ static int update_usable_mem_fdt(void *fdt, struct crash_mem *usable_mem)
690690
ret = fdt_setprop(fdt, node, "linux,drconf-usable-memory",
691691
um_info.buf, (um_info.idx * sizeof(u64)));
692692
if (ret) {
693-
pr_err("Failed to update fdt with linux,drconf-usable-memory property");
693+
pr_err("Failed to update fdt with linux,drconf-usable-memory property: %s",
694+
fdt_strerror(ret));
694695
goto out;
695696
}
696697
}

0 commit comments

Comments
 (0)