Skip to content

Commit b57a7c9

Browse files
Eric DeVoldersuryasaimadhu
authored andcommitted
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 <[email protected]> Signed-off-by: Borislav Petkov <[email protected]> Acked-by: Baoquan He <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 3123109 commit b57a7c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/x86/kernel/crash.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ int crash_load_segments(struct kimage *image)
407407
}
408408
image->elf_load_addr = kbuf.mem;
409409
pr_debug("Loaded ELF headers at 0x%lx bufsz=0x%lx memsz=0x%lx\n",
410-
image->elf_load_addr, kbuf.bufsz, kbuf.bufsz);
410+
image->elf_load_addr, kbuf.bufsz, kbuf.memsz);
411411

412412
return ret;
413413
}

0 commit comments

Comments
 (0)