lkml.org 
[lkml]   [2023]   [Mar]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 3/4] module: add section-size to move_module pr_debug
    Date
    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>
    ---
    kernel/module/main.c | 4 ++--
    1 file changed, 2 insertions(+), 2 deletions(-)

    diff --git a/kernel/module/main.c b/kernel/module/main.c
    index e248a3697ffb..a2a8ed8564ae 100644
    --- a/kernel/module/main.c
    +++ b/kernel/module/main.c
    @@ -2177,8 +2177,8 @@ static int move_module(struct module *mod, struct load_info *info)
    memcpy(dest, (void *)shdr->sh_addr, shdr->sh_size);
    /* Update sh_addr to point to copy in image. */
    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;
    --
    2.39.2
    \
     
     \ /
      Last update: 2023-03-27 01:11    [W:2.667 / U:0.080 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site