From nobody Fri Oct 3 21:40:11 2025 Received: from out30-97.freemail.mail.aliyun.com (out30-97.freemail.mail.aliyun.com [115.124.30.97]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C937923D2B4 for ; Mon, 25 Aug 2025 02:57:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=115.124.30.97 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1756090637; cv=none; b=MfKyNBjGWU6eN8b2shgnSXBtjIfX+pmbBPy+CWrR63IwOhaGI/V30V+XxE5kzPRHYg+5/mc0c7L+4pEeJhWUGGY8Pj63rXQ3gQw2eiWqeooT1SQORzkwzsDjihmWziIN7K8R1FFgvzy+9X4yiSdxkvmpfSwqtJfcBx4CTlYvpuc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1756090637; c=relaxed/simple; bh=ASaRrsEZDmTiDHm3s3OqKEAQ9kFl7xznm8dXYNqoV0k=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=q8hlwpbPItWRWHC/54R4djcmqYGvbPCIPG6l7t+aftwByYQEEVGXvEIcfTeZjnesolJE2msMy1aEYHIVu5lz5EaC7fI9hvft2GUpEpNTfVKB01xV63zPR5dmuhjMiY4LPJc8eO03q2IPwe6SY3ywXVl0R56chGupoTShrCJn0TE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.alibaba.com; spf=pass smtp.mailfrom=linux.alibaba.com; dkim=pass (1024-bit key) header.d=linux.alibaba.com header.i=@linux.alibaba.com header.b=lHAaF1hH; arc=none smtp.client-ip=115.124.30.97 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.alibaba.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.alibaba.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.alibaba.com header.i=@linux.alibaba.com header.b="lHAaF1hH" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.alibaba.com; s=default; t=1756090626; h=From:To:Subject:Date:Message-Id:MIME-Version; bh=c7gDWnFsSTjlPtD6qhOWDCIYup4GCna1Prrr83zPfO8=; b=lHAaF1hHjFvCQX9YayFBpx3b6N8fh3n4tH5N04MToSb0Yjt0oMZ0j8SJ97KojjO/x3u3uZTbnbZRl5Km+inw0GQ2Af4/Ia0gaCjb7kp2JGwJr9kvMqsfd1FeTko31zj3B8V89WvBILxjdAY8uV5sBO7KNFJGGHRaaEYqVqSA4dU= Received: from localhost(mailfrom:feng.tang@linux.alibaba.com fp:SMTPD_---0WmPseIX_1756090625 cluster:ay36) by smtp.aliyun-inc.com; Mon, 25 Aug 2025 10:57:05 +0800 From: Feng Tang To: Andrew Morton , Petr Mladek , Steven Rostedt , Lance Yang , Jonathan Corbet , linux-kernel@vger.kernel.org Cc: Askar Safin , paulmck@kernel.org, john.ogness@linutronix.de, Feng Tang Subject: [PATCH v2 4/4] panic: Clean up message about deprecated 'panic_print' parameter Date: Mon, 25 Aug 2025 10:57:01 +0800 Message-Id: <20250825025701.81921-5-feng.tang@linux.alibaba.com> X-Mailer: git-send-email 2.39.5 (Apple Git-154) In-Reply-To: <20250825025701.81921-1-feng.tang@linux.alibaba.com> References: <20250825025701.81921-1-feng.tang@linux.alibaba.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: Petr Mladek 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. Signed-off-by: Petr Mladek Reviewed-by: Lance Yang Tested-by: Lance Yang Reviewed-by: Feng Tang --- kernel/panic.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/kernel/panic.c b/kernel/panic.c index 12a10e17ab4a..24bca263f896 100644 --- a/kernel/panic.c +++ b/kernel/panic.c @@ -77,6 +77,11 @@ ATOMIC_NOTIFIER_HEAD(panic_notifier_list); =20 EXPORT_SYMBOL(panic_notifier_list); =20 +static void panic_print_deprecated(void) +{ + pr_info_once("Kernel: The 'panic_print' parameter is now deprecated. Plea= se use 'panic_sys_info' and 'panic_console_replay' instead.\n"); +} + #ifdef CONFIG_SYSCTL =20 /* @@ -125,7 +130,7 @@ static int proc_taint(const struct ctl_table *table, in= t write, static int sysctl_panic_print_handler(const struct ctl_table *table, int w= rite, void *buffer, size_t *lenp, loff_t *ppos) { - pr_info_once("Kernel: 'panic_print' sysctl interface will be obsoleted by= both 'panic_sys_info' and 'panic_console_replay'\n"); + panic_print_deprecated(); return proc_doulongvec_minmax(table, write, buffer, lenp, ppos); } =20 @@ -944,13 +949,13 @@ core_param(panic_console_replay, panic_console_replay= , bool, 0644); =20 static int panic_print_set(const char *val, const struct kernel_param *kp) { - pr_info_once("Kernel: 'panic_print' parameter will be obsoleted by both '= panic_sys_info' and 'panic_console_replay'\n"); + panic_print_deprecated(); return param_set_ulong(val, kp); } =20 static int panic_print_get(char *val, const struct kernel_param *kp) { - pr_info_once("Kernel: 'panic_print' parameter will be obsoleted by both '= panic_sys_info' and 'panic_console_replay'\n"); + panic_print_deprecated(); return param_get_ulong(val, kp); } =20 --=20 2.39.5 (Apple Git-154)