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