]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
sparc/module: Make it clear that relocation numbers are shown in hex
authorKoakuma <koachan@protonmail.com>
Mon, 9 Jun 2025 13:53:12 +0000 (20:53 +0700)
committerAndreas Larsson <andreas@gaisler.com>
Fri, 19 Sep 2025 18:23:09 +0000 (20:23 +0200)
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>
arch/sparc/kernel/module.c

index 6e3d4dde4f9ab33040b300c40d5fd5d0584e166d..49740450a6859fda566459ee4679869f9854b760 100644 (file)
@@ -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;