aboutsummaryrefslogtreecommitdiffstats
path: root/arch/m68k/kernel/module.c
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert@linux-m68k.org>2016-12-06 13:57:37 -0500
committerGeert Uytterhoeven <geert@linux-m68k.org>2017-02-12 04:36:52 -0500
commit7c79e1eef8c9a723e589364643c7e74b688e23bf (patch)
tree14dbba3ffb10615785668fdc988bf538cd8683e5 /arch/m68k/kernel/module.c
parent4eee1e72ad06bdc942b8f8c221d49691ef232c56 (diff)
m68k/kernel: Modernize printing of kernel messages
- Use pr_err_ratelimited() instead of deprecated printk_ratelimit(), - Add dummies for validating format strings when debugging is disabled, - Convert from printk() to pr_*(), - Correct printf()-style format specifiers. Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Diffstat (limited to 'arch/m68k/kernel/module.c')
-rw-r--r--arch/m68k/kernel/module.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/arch/m68k/kernel/module.c b/arch/m68k/kernel/module.c
index eb46fd6038ca..aaac2da318ff 100644
--- a/arch/m68k/kernel/module.c
+++ b/arch/m68k/kernel/module.c
@@ -12,9 +12,9 @@
12#include <linux/kernel.h> 12#include <linux/kernel.h>
13 13
14#if 0 14#if 0
15#define DEBUGP printk 15#define DEBUGP(fmt, ...) printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__)
16#else 16#else
17#define DEBUGP(fmt...) 17#define DEBUGP(fmt, ...) no_printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__)
18#endif 18#endif
19 19
20#ifdef CONFIG_MODULES 20#ifdef CONFIG_MODULES
@@ -51,8 +51,8 @@ int apply_relocate(Elf32_Shdr *sechdrs,
51 *location += sym->st_value - (uint32_t)location; 51 *location += sym->st_value - (uint32_t)location;
52 break; 52 break;
53 default: 53 default:
54 printk(KERN_ERR "module %s: Unknown relocation: %u\n", 54 pr_err("module %s: Unknown relocation: %u\n", me->name,
55 me->name, ELF32_R_TYPE(rel[i].r_info)); 55 ELF32_R_TYPE(rel[i].r_info));
56 return -ENOEXEC; 56 return -ENOEXEC;
57 } 57 }
58 } 58 }
@@ -91,8 +91,8 @@ int apply_relocate_add(Elf32_Shdr *sechdrs,
91 *location = rel[i].r_addend + sym->st_value - (uint32_t)location; 91 *location = rel[i].r_addend + sym->st_value - (uint32_t)location;
92 break; 92 break;
93 default: 93 default:
94 printk(KERN_ERR "module %s: Unknown relocation: %u\n", 94 pr_err("module %s: Unknown relocation: %u\n", me->name,
95 me->name, ELF32_R_TYPE(rel[i].r_info)); 95 ELF32_R_TYPE(rel[i].r_info));
96 return -ENOEXEC; 96 return -ENOEXEC;
97 } 97 }
98 } 98 }