mirror of
https://gitee.com/open-loongarch/linux-6.12.git
synced 2026-10-25 20:47:11 +08:00
LoongArch: Use %px to print unmodified unwinding address
Currently, use %p to prevent leaking information about the kernel memory layout when printing the PC address, but the kernel log messages are not useful to debug problem if bt_address() returns 0. Given that the type of "pc" variable is unsigned long, it should use %px to print the unmodified unwinding address. Cc: stable@vger.kernel.org Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn> Signed-off-by: Huacai Chen <chenhuacai@loongson.cn> Signed-off-by: maoxiaochuan <maoxiaochuan@loongson.cn>
This commit is contained in:
committed by
maoxiaochuan
parent
04eb3f07ef
commit
ab1febcd3f
@@ -508,7 +508,7 @@ bool unwind_next_frame(struct unwind_state *state)
|
||||
|
||||
state->pc = bt_address(pc);
|
||||
if (!state->pc) {
|
||||
pr_err("cannot find unwind pc at %p\n", (void *)pc);
|
||||
pr_err("cannot find unwind pc at %px\n", (void *)pc);
|
||||
goto err;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user