aboutsummaryrefslogtreecommitdiff
path: root/arch/x86/kernel/crash.c
diff options
context:
space:
mode:
authorGravatar Eric DeVolder <eric.devolder@oracle.com> 2022-04-13 12:42:30 -0400
committerGravatar Borislav Petkov <bp@suse.de> 2022-04-13 19:39:54 +0200
commitb57a7c9dd732ca29c4400a9a710c56c55877086d (patch)
treed9fac02d28370f193867e9cefcb8e611a106c1a1 /arch/x86/kernel/crash.c
parentLinux 5.18-rc1 (diff)
downloadlinux-b57a7c9dd732ca29c4400a9a710c56c55877086d.tar.gz
linux-b57a7c9dd732ca29c4400a9a710c56c55877086d.tar.bz2
linux-b57a7c9dd732ca29c4400a9a710c56c55877086d.zip
x86/crash: Fix minor typo/bug in debug message
The pr_debug() intends to display the memsz member, but the parameter is actually the bufsz member (which is already displayed). Correct this to display memsz value. Signed-off-by: Eric DeVolder <eric.devolder@oracle.com> Signed-off-by: Borislav Petkov <bp@suse.de> Acked-by: Baoquan He <bhe@redhat.com> Link: https://lore.kernel.org/r/20220413164237.20845-2-eric.devolder@oracle.com
Diffstat (limited to 'arch/x86/kernel/crash.c')
-rw-r--r--arch/x86/kernel/crash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kernel/crash.c b/arch/x86/kernel/crash.c
index e8326a8d1c5d..9730c88530fc 100644
--- a/arch/x86/kernel/crash.c
+++ b/arch/x86/kernel/crash.c
@@ -407,7 +407,7 @@ int crash_load_segments(struct kimage *image)
}
image->elf_load_addr = kbuf.mem;
pr_debug("Loaded ELF headers at 0x%lx bufsz=0x%lx memsz=0x%lx\n",
- image->elf_load_addr, kbuf.bufsz, kbuf.bufsz);
+ image->elf_load_addr, kbuf.bufsz, kbuf.memsz);
return ret;
}