diff options
author | Jim Cromie <jim.cromie@gmail.com> | 2023-03-22 02:36:21 +0100 |
---|---|---|
committer | Luis Chamberlain <mcgrof@kernel.org> | 2023-03-24 19:33:09 +0100 |
commit | b10addf37bbcaee66672eb54c15532266c8daea6 (patch) | |
tree | e012d2dc7996a0dd18c84e1268c3e96a81a14c7f /kernel/module | |
parent | module: in layout_sections, move_module: add the modname (diff) | |
download | linux-b10addf37bbcaee66672eb54c15532266c8daea6.tar.xz linux-b10addf37bbcaee66672eb54c15532266c8daea6.zip |
module: add symbol-name to pr_debug Absolute symbol
The pr_debug("Absolute symbol" ..) reports value, (which is usually
0), but not the name, which is more informative. So add it.
no functional changes
Signed-off-by: Jim Cromie <jim.cromie@gmail.com>
Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
Diffstat (limited to 'kernel/module')
-rw-r--r-- | kernel/module/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/module/main.c b/kernel/module/main.c index 3bea679837e0..6567d5a156ae 100644 --- a/kernel/module/main.c +++ b/kernel/module/main.c @@ -1394,8 +1394,8 @@ static int simplify_symbols(struct module *mod, const struct load_info *info) case SHN_ABS: /* Don't need to do anything */ - pr_debug("Absolute symbol: 0x%08lx\n", - (long)sym[i].st_value); + pr_debug("Absolute symbol: 0x%08lx %s\n", + (long)sym[i].st_value, name); break; case SHN_LIVEPATCH: |