module: add section-size to move_module pr_debug
authorJim Cromie <jim.cromie@gmail.com>
Wed, 22 Mar 2023 01:36:22 +0000 (19:36 -0600)
committerLuis Chamberlain <mcgrof@kernel.org>
Fri, 24 Mar 2023 18:33:09 +0000 (11:33 -0700)
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>
kernel/module/main.c

index 6567d5a156ae74c98ec75cc1142375a10338a64c..1d587e5e9cc6ed0a301e4b24c50f52205ee12232 100644 (file)
@@ -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;