summaryrefslogtreecommitdiff
path: root/arch/powerpc/kexec
diff options
context:
space:
mode:
authorSourabh Jain <sourabhjain@linux.ibm.com>2022-12-16 15:27:08 +0300
committerMichael Ellerman <mpe@ellerman.id.au>2023-02-15 15:14:06 +0300
commitb0ae5b6f3c298a005b73556740526c0e24a5633c (patch)
tree53f6030fe1e683ea214265561f0fe4e6bbdc6cc4 /arch/powerpc/kexec
parent388defd5e4180a48e068d7ba9b024ce0ca957968 (diff)
downloadlinux-b0ae5b6f3c298a005b73556740526c0e24a5633c.tar.xz
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 <sourabhjain@linux.ibm.com> Acked-by: Hari Bathini <hbathini@linux.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/20221216122708.182154-1-sourabhjain@linux.ibm.com
Diffstat (limited to 'arch/powerpc/kexec')
-rw-r--r--arch/powerpc/kexec/file_load_64.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/powerpc/kexec/file_load_64.c b/arch/powerpc/kexec/file_load_64.c
index ab80c492da31..110d28bede2a 100644
--- a/arch/powerpc/kexec/file_load_64.c
+++ b/arch/powerpc/kexec/file_load_64.c
@@ -690,7 +690,8 @@ static int update_usable_mem_fdt(void *fdt, struct crash_mem *usable_mem)
ret = fdt_setprop(fdt, node, "linux,drconf-usable-memory",
um_info.buf, (um_info.idx * sizeof(u64)));
if (ret) {
- pr_err("Failed to update fdt with linux,drconf-usable-memory property");
+ pr_err("Failed to update fdt with linux,drconf-usable-memory property: %s",
+ fdt_strerror(ret));
goto out;
}
}