Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

panic: clean up message about deprecated 'panic_print' parameter

Remove duplication of the message about deprecated 'panic_print'
parameter.

Also make the wording more direct. Make it clear that the new parameters
already exist and should be used instead.

Link: https://lkml.kernel.org/r/20250825025701.81921-5-feng.tang@linux.alibaba.com
Signed-off-by: Petr Mladek <pmladek@suse.com>
Signed-off-by: Feng Tang <feng.tang@linux.alibaba.com>
Reviewed-by: Lance Yang <lance.yang@linux.dev>
Tested-by: Lance Yang <lance.yang@linux.dev>
Reviewed-by: Feng Tang <feng.tang@linux.alibaba.com>
Cc: Askar Safin <safinaskar@zohomail.com>
Cc: John Ogness <john.ogness@linutronix.de>
Cc: Jonathan Corbet <corbet@lwn.net>
Cc: "Paul E . McKenney" <paulmck@kernel.org>
Cc: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

authored by

Petr Mladek and committed by
Andrew Morton
e40d2014 2683df65

+8 -3
+8 -3
kernel/panic.c
··· 77 77 78 78 EXPORT_SYMBOL(panic_notifier_list); 79 79 80 + static void panic_print_deprecated(void) 81 + { 82 + pr_info_once("Kernel: The 'panic_print' parameter is now deprecated. Please use 'panic_sys_info' and 'panic_console_replay' instead.\n"); 83 + } 84 + 80 85 #ifdef CONFIG_SYSCTL 81 86 82 87 /* ··· 130 125 static int sysctl_panic_print_handler(const struct ctl_table *table, int write, 131 126 void *buffer, size_t *lenp, loff_t *ppos) 132 127 { 133 - pr_info_once("Kernel: 'panic_print' sysctl interface will be obsoleted by both 'panic_sys_info' and 'panic_console_replay'\n"); 128 + panic_print_deprecated(); 134 129 return proc_doulongvec_minmax(table, write, buffer, lenp, ppos); 135 130 } 136 131 ··· 949 944 950 945 static int panic_print_set(const char *val, const struct kernel_param *kp) 951 946 { 952 - pr_info_once("Kernel: 'panic_print' parameter will be obsoleted by both 'panic_sys_info' and 'panic_console_replay'\n"); 947 + panic_print_deprecated(); 953 948 return param_set_ulong(val, kp); 954 949 } 955 950 956 951 static int panic_print_get(char *val, const struct kernel_param *kp) 957 952 { 958 - pr_info_once("Kernel: 'panic_print' parameter will be obsoleted by both 'panic_sys_info' and 'panic_console_replay'\n"); 953 + panic_print_deprecated(); 959 954 return param_get_ulong(val, kp); 960 955 } 961 956