Skip to content

Commit 74e5506

Browse files
committed
lkl: fix a string format warning
String format %p family expects to be passed void * type. This commit adds missing explicit type cast. Signed-off-by: Akira Moroo <retrage01@gmail.com>
1 parent 0a25540 commit 74e5506

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

arch/lkl/kernel/misc.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ void dump_stack(void)
1515
while (((long)stack & (THREAD_SIZE - 1)) != 0) {
1616
addr = *stack;
1717
if (__kernel_text_address(addr)) {
18-
pr_info("%p: [<%08lx>] %pS", stack, addr, addr);
18+
pr_info("%p: [<%08lx>] %pS", stack, addr,
19+
(void *)addr);
1920
pr_cont("\n");
2021
}
2122
stack++;

0 commit comments

Comments
 (0)