From: Jim Cromie Date: Wed, 22 Mar 2023 01:36:21 +0000 (-0600) Subject: module: add symbol-name to pr_debug Absolute symbol X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=b10addf37bbcaee66672eb54c15532266c8daea6;p=linux.git 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 Signed-off-by: Luis Chamberlain --- diff --git a/kernel/module/main.c b/kernel/module/main.c index 3bea679837e06..6567d5a156ae7 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: