summaryrefslogtreecommitdiffstats
path: root/kernel/panic.c
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2022-10-08 22:59:14 +0300
committerAndrew Morton <akpm@linux-foundation.org>2022-11-18 13:55:06 -0800
commit5d5dd3e4a86a64cc69fa0fdd32f769b1d97a9a83 (patch)
tree0c09d992126733526ae8fbe44af3ea3ee0ac65cd /kernel/panic.c
parent6a6d7602caec1b49dda423b0d15a8c4f72c9c73d (diff)
downloadlinux-5d5dd3e4a86a64cc69fa0fdd32f769b1d97a9a83.tar.gz
linux-5d5dd3e4a86a64cc69fa0fdd32f769b1d97a9a83.tar.bz2
linux-5d5dd3e4a86a64cc69fa0fdd32f769b1d97a9a83.zip
panic: use str_enabled_disabled() helper
Use str_enabled_disabled() helper instead of open coding the same. Link: https://lkml.kernel.org/r/20221008195914.54199-1-andriy.shevchenko@linux.intel.com Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'kernel/panic.c')
-rw-r--r--kernel/panic.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/kernel/panic.c b/kernel/panic.c
index da323209f583..75fe389e8814 100644
--- a/kernel/panic.c
+++ b/kernel/panic.c
@@ -25,6 +25,7 @@
#include <linux/kexec.h>
#include <linux/panic_notifier.h>
#include <linux/sched.h>
+#include <linux/string_helpers.h>
#include <linux/sysrq.h>
#include <linux/init.h>
#include <linux/nmi.h>
@@ -744,8 +745,8 @@ static int __init panic_on_taint_setup(char *s)
if (s && !strcmp(s, "nousertaint"))
panic_on_taint_nousertaint = true;
- pr_info("panic_on_taint: bitmask=0x%lx nousertaint_mode=%sabled\n",
- panic_on_taint, panic_on_taint_nousertaint ? "en" : "dis");
+ pr_info("panic_on_taint: bitmask=0x%lx nousertaint_mode=%s\n",
+ panic_on_taint, str_enabled_disabled(panic_on_taint_nousertaint));
return 0;
}