stack_record->handle.handle is a depot_stack_handle_t, i.e. an unsigned 32-bit type. Printing it with %d may display a negative handle when the extra bits stored in the upper part of the handle are set, which confuses the users of the page_owner_stacks debugfs interface. Use %u instead. Signed-off-by: zhangchujun diff --git a/mm/page_owner.c b/mm/page_owner.c index cfc31c92d765..02bb304b53cf 100644 --- a/mm/page_owner.c +++ b/mm/page_owner.c @@ -1089,7 +1089,7 @@ static int stack_print(struct seq_file *m, void *v) seq_printf(m, " %pS\n", (void *)entries[i]); } if (ctx->flags & STACK_PRINT_FLAG_HANDLE) - seq_printf(m, "handle: %d\n", stack_record->handle.handle); + seq_printf(m, "handle: %u\n", stack_record->handle.handle); if (ctx->flags & STACK_PRINT_FLAG_PAGES) seq_printf(m, "nr_base_pages: %d\n", nr_base_pages); seq_putc(m, '\n'); -- 2.50.1.windows.1