summaryrefslogtreecommitdiffstats
path: root/arch/m68k/include/asm/bug.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/bug.h
parentm68k/mm: Modernize printing of kernel messages (diff)
downloadlinux-f0b914aeea8ed2abe8e53779ec620eac2129d03f.tar.xz
linux-f0b914aeea8ed2abe8e53779ec620eac2129d03f.zip
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/bug.h')
-rw-r--r--arch/m68k/include/asm/bug.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/m68k/include/asm/bug.h b/arch/m68k/include/asm/bug.h
index ef9a2e47352f..5bc8d91d68d4 100644
--- a/arch/m68k/include/asm/bug.h
+++ b/arch/m68k/include/asm/bug.h
@@ -6,12 +6,12 @@
#ifdef CONFIG_DEBUG_BUGVERBOSE
#ifndef CONFIG_SUN3
#define BUG() do { \
- printk("kernel BUG at %s:%d!\n", __FILE__, __LINE__); \
+ pr_crit("kernel BUG at %s:%d!\n", __FILE__, __LINE__); \
__builtin_trap(); \
} while (0)
#else
#define BUG() do { \
- printk("kernel BUG at %s:%d!\n", __FILE__, __LINE__); \
+ pr_crit("kernel BUG at %s:%d!\n", __FILE__, __LINE__); \
panic("BUG!"); \
} while (0)
#endif