From: Jim Cromie Date: Wed, 22 Mar 2023 01:36:22 +0000 (-0600) Subject: module: add section-size to move_module pr_debug X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=66a2301edf313d630c2ece4f3721c5b3402653ee;p=linux.git 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 --- diff --git a/kernel/module/main.c b/kernel/module/main.c index 6567d5a156ae7..1d587e5e9cc6e 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;