Skip to content

Commit

Permalink
module: add section-size to move_module pr_debug
Browse files Browse the repository at this point in the history
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 <jim.cromie@gmail.com>
Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
  • Loading branch information
jimc authored and mcgrof committed Mar 24, 2023
1 parent b10addf commit 66a2301
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kernel/module/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 66a2301

Please sign in to comment.