summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKoakuma <koachan@protonmail.com>2025-06-09 20:53:12 +0700
committerAndreas Larsson <andreas@gaisler.com>2025-09-19 20:23:09 +0200
commitdee099fd9d9af800ef28a3f930d32974104cf36a (patch)
treed98ba9c4e0fbc8af9e111df7084517107cd2788e
parent05457d96175d25c976ab6241c332ae2eb5e07833 (diff)
sparc/module: Make it clear that relocation numbers are shown in hex
This is to ease debugging by removing the ambiguity of the shown number base. Signed-off-by: Koakuma <koachan@protonmail.com> Reviewed-by: Andreas Larsson <andreas@gaisler.com> Signed-off-by: Andreas Larsson <andreas@gaisler.com>
-rw-r--r--arch/sparc/kernel/module.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/sparc/kernel/module.c b/arch/sparc/kernel/module.c
index 6e3d4dde4f9a..49740450a685 100644
--- a/arch/sparc/kernel/module.c
+++ b/arch/sparc/kernel/module.c
@@ -142,7 +142,7 @@ int apply_relocate_add(Elf_Shdr *sechdrs,
break;
default:
- printk(KERN_ERR "module %s: Unknown relocation: %x\n",
+ printk(KERN_ERR "module %s: Unknown relocation: 0x%x\n",
me->name,
(int) (ELF_R_TYPE(rel[i].r_info) & 0xff));
return -ENOEXEC;