]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
kexec_file, riscv: print out debugging message if required
authorBaoquan He <bhe@redhat.com>
Wed, 13 Dec 2023 05:57:45 +0000 (13:57 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Wed, 20 Dec 2023 23:02:57 +0000 (15:02 -0800)
commiteb7622d908a097fe0b845cb2dc4b579b99f04b59
tree7a56fe002c45400a1db55fbe80c6a58f87153ccc
parent6f8c1da071a46176966e377fb77a46366fb5af2d
kexec_file, riscv: print out debugging message if required

Then when specifying '-d' for kexec_file_load interface, loaded locations
of kernel/initrd/cmdline etc can be printed out to help debug.

Here replace pr_debug() with the newly added kexec_dprintk() in kexec_file
loading related codes.

And also replace pr_notice() with kexec_dprintk() in elf_kexec_load()
because loaded location of purgatory and device tree are only printed out
for debugging, it doesn't make sense to always print them out.

And also remove kexec_image_info() because the content has been printed
out in generic code.

Link: https://lkml.kernel.org/r/20231213055747.61826-6-bhe@redhat.com
Signed-off-by: Baoquan He <bhe@redhat.com>
Cc: Conor Dooley <conor@kernel.org>
Cc: Joe Perches <joe@perches.com>
Cc: Nathan Chancellor <nathan@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
arch/riscv/kernel/elf_kexec.c
arch/riscv/kernel/machine_kexec.c