MIPS: Module: Make error messages unique.

There were three different errors resulting in a "dangerous relocation"
message. Add the relocation type to the messgages to make them more
useful.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>

+5 -3
+5 -3
arch/mips/kernel/module.c
··· 98 static int apply_r_mips_26_rel(struct module *me, u32 *location, Elf_Addr v) 99 { 100 if (v % 4) { 101 - printk(KERN_ERR "module %s: dangerous relocation\n", me->name); 102 return -ENOEXEC; 103 } 104 ··· 119 static int apply_r_mips_26_rela(struct module *me, u32 *location, Elf_Addr v) 120 { 121 if (v % 4) { 122 - printk(KERN_ERR "module %s: dangerous relocation\n", me->name); 123 return -ENOEXEC; 124 } 125 ··· 224 return 0; 225 226 out_danger: 227 - printk(KERN_ERR "module %s: dangerous " "relocation\n", me->name); 228 229 return -ENOEXEC; 230 }
··· 98 static int apply_r_mips_26_rel(struct module *me, u32 *location, Elf_Addr v) 99 { 100 if (v % 4) { 101 + pr_err("module %s: dangerous R_MIPS_26 REL relocation\n", 102 + me->name); 103 return -ENOEXEC; 104 } 105 ··· 118 static int apply_r_mips_26_rela(struct module *me, u32 *location, Elf_Addr v) 119 { 120 if (v % 4) { 121 + pr_err("module %s: dangerous R_MIPS_26 RELArelocation\n", 122 + me->name); 123 return -ENOEXEC; 124 } 125 ··· 222 return 0; 223 224 out_danger: 225 + pr_err("module %s: dangerous R_MIPS_LO16 REL relocation\n", me->name); 226 227 return -ENOEXEC; 228 }