Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

kexec_file, parisc: 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.

Link: https://lkml.kernel.org/r/20231213055747.61826-8-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>

authored by

Baoquan He and committed by
Andrew Morton
a78c668b 63b642e9

+4 -4
+4 -4
arch/parisc/kernel/kexec_file.c
··· 38 38 for (i = 0; i < image->nr_segments; i++) 39 39 image->segment[i].mem = __pa(image->segment[i].mem); 40 40 41 - pr_debug("Loaded the kernel at 0x%lx, entry at 0x%lx\n", 42 - kernel_load_addr, image->start); 41 + kexec_dprintk("Loaded the kernel at 0x%lx, entry at 0x%lx\n", 42 + kernel_load_addr, image->start); 43 43 44 44 if (initrd != NULL) { 45 45 kbuf.buffer = initrd; ··· 51 51 if (ret) 52 52 goto out; 53 53 54 - pr_debug("Loaded initrd at 0x%lx\n", kbuf.mem); 54 + kexec_dprintk("Loaded initrd at 0x%lx\n", kbuf.mem); 55 55 image->arch.initrd_start = kbuf.mem; 56 56 image->arch.initrd_end = kbuf.mem + initrd_len; 57 57 } ··· 68 68 if (ret) 69 69 goto out; 70 70 71 - pr_debug("Loaded cmdline at 0x%lx\n", kbuf.mem); 71 + kexec_dprintk("Loaded cmdline at 0x%lx\n", kbuf.mem); 72 72 image->arch.cmdline = kbuf.mem; 73 73 } 74 74 out: