Skip to content

Commit 57ada23

Browse files
olafheringJonathan Corbet
authored andcommitted
Fix documentation of panic_on_warn
The kernel cmdline option panic_on_warn expects an integer, it is not a plain option as documented. A number of uses in the tree figured this already, and use panic_on_warn=1 for their purpose. Adjust a comment which otherwise may mislead people in the future. Fixes: 9e3961a ("kernel: add panic_on_warn") Signed-off-by: Olaf Hering <[email protected]> Reviewed-by: Randy Dunlap <[email protected]> Signed-off-by: Jonathan Corbet <[email protected]>
1 parent b45d8f3 commit 57ada23

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Documentation/admin-guide/kernel-parameters.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4064,7 +4064,7 @@
40644064
extra details on the taint flags that users can pick
40654065
to compose the bitmask to assign to panic_on_taint.
40664066

4067-
panic_on_warn panic() instead of WARN(). Useful to cause kdump
4067+
panic_on_warn=1 panic() instead of WARN(). Useful to cause kdump
40684068
on a WARN().
40694069

40704070
parkbd.port= [HW] Parallel port number the keyboard adapter is

tools/testing/selftests/rcutorture/bin/kvm.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -655,4 +655,4 @@ fi
655655
# Control buffer size: --bootargs trace_buf_size=3k
656656
# Get trace-buffer dumps on all oopses: --bootargs ftrace_dump_on_oops
657657
# Ditto, but dump only the oopsing CPU: --bootargs ftrace_dump_on_oops=orig_cpu
658-
# Heavy-handed way to also dump on warnings: --bootargs panic_on_warn
658+
# Heavy-handed way to also dump on warnings: --bootargs panic_on_warn=1

0 commit comments

Comments
 (0)