From 66a2301edf313d630c2ece4f3721c5b3402653ee Mon Sep 17 00:00:00 2001 From: Jim Cromie Date: Tue, 21 Mar 2023 19:36:22 -0600 Subject: module: add section-size to move_module pr_debug move_module() pr_debug's "Final section addresses for $modname". Add section addresses to the message, for anyone looking at these. no functional changes. Signed-off-by: Jim Cromie Signed-off-by: Luis Chamberlain --- kernel/module/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'kernel/module') diff --git a/kernel/module/main.c b/kernel/module/main.c index 6567d5a156ae..1d587e5e9cc6 100644 --- a/kernel/module/main.c +++ b/kernel/module/main.c @@ -2281,8 +2281,8 @@ static int move_module(struct module *mod, struct load_info *info) * minted official memory area. */ shdr->sh_addr = (unsigned long)dest; - pr_debug("\t0x%lx %s\n", - (long)shdr->sh_addr, info->secstrings + shdr->sh_name); + pr_debug("\t0x%lx 0x%.8lx %s\n", (long)shdr->sh_addr, + (long)shdr->sh_size, info->secstrings + shdr->sh_name); } return 0; -- cgit