summaryrefslogtreecommitdiff
path: root/arch/m68k/include/asm/math-emu.h
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert@linux-m68k.org>2016-12-06 20:05:26 +0100
committerGeert Uytterhoeven <geert@linux-m68k.org>2017-02-12 10:36:54 +0100
commitf0b914aeea8ed2abe8e53779ec620eac2129d03f (patch)
treeab769b89d7bb122410f61e13c3ebc667a42d15cc /arch/m68k/include/asm/math-emu.h
parente6991137a3895b8ee2096fd2259b1f0be95843d0 (diff)
m68k/include: Modernize printing of kernel messages
- Convert from printk() to pr_*(), - Add dummies for validating format strings when debugging is disabled. Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Diffstat (limited to 'arch/m68k/include/asm/math-emu.h')
-rw-r--r--arch/m68k/include/asm/math-emu.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/arch/m68k/include/asm/math-emu.h b/arch/m68k/include/asm/math-emu.h
index 5e9249b0014c..b062696d5a0d 100644
--- a/arch/m68k/include/asm/math-emu.h
+++ b/arch/m68k/include/asm/math-emu.h
@@ -105,21 +105,21 @@ struct fp_data {
#ifdef FPU_EMU_DEBUG
extern unsigned int fp_debugprint;
-#define dprint(bit, fmt, args...) ({ \
+#define dprint(bit, fmt, ...) ({ \
if (fp_debugprint & (1 << (bit))) \
- printk(fmt, ## args); \
+ pr_info(fmt, ##__VA_ARGS__); \
})
#else
-#define dprint(bit, fmt, args...)
+#define dprint(bit, fmt, ...) no_printk(fmt, ##__VA_ARGS__)
#endif
#define uprint(str) ({ \
static int __count = 3; \
\
if (__count > 0) { \
- printk("You just hit an unimplemented " \
+ pr_err("You just hit an unimplemented " \
"fpu instruction (%s)\n", str); \
- printk("Please report this to ....\n"); \
+ pr_err("Please report this to ....\n"); \
__count--; \
} \
})