Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp645005ybh; Tue, 10 Mar 2020 05:46:30 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvRqM89s8FVZKde1c17wpL9dG41NR5t4XUn4FPzUER93kmhR6+nsphu1IHrQDLj+XbVvAYr X-Received: by 2002:a9d:3de4:: with SMTP id l91mr17384037otc.35.1583844390759; Tue, 10 Mar 2020 05:46:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1583844390; cv=none; d=google.com; s=arc-20160816; b=ooH5uqqu5ad1VMSHGEka9J3QHBvNl6f09GgKUNHY3lIrFzK3kGc19Cnr9ZLjEjFWbR ihR5tKSUK61lcof6Y6/Ulzf9CKV4Pu5ZEEERry2TUEl3/u/C+UCbu5F44LTciuE8s8eQ WSv1HodzYgoegTVCN+BFPQ6zibFFWIl68FWpX6f3dQgJv/U/h8mfyokP5t9sioOsUO1i OuFwm3dPhtj2yDO2egi++aH7zAZ+frMEIL+XREDp0bVUr8zhExwh73zmtA4SChMBkQZU xlVb16UjOiz680CPG1MgU75apiDcmZxqbE570LmNIb5UhuymOe3t/LpvQ2bGM0stlCN8 2H3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=AAf00Br5X+cAPq61khr6Nv2tOpP5wubWbgE2bKncGTI=; b=x5dbK5f1PGyd5fTqIMqCaNsLOIQftbINDE3eDv+/f506o5ao+WU5D9KxFHhqxXsRYx Iqhxe8XAvJKsCiefEZdcRfGHApWyFnkXnxs9ADw3qECWCUlFUxlf7u9lTV1GO6CwzNpn wZuVvd9xnyNRlbd9RZSgxHUbwI/FsvvOIA4U/V6lnp/HgDCKL0PqnN45sv7/+TiFYtYc zw2fKYeZxdVnmfrq8MRZSmwo2fxGNUgMKgGYzadNAH/keBp5d3sV4hf0B9u7VDbXI5M1 00J92pYn2a9psJi077pVCbBUtsuNaFAAa7mTBALh4DDzbCVc80WE1wGo37W6xNf0ae9i ViGw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=V5x9rSxJ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l65si3038995oig.156.2020.03.10.05.46.18; Tue, 10 Mar 2020 05:46:30 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=V5x9rSxJ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727766AbgCJMoe (ORCPT + 99 others); Tue, 10 Mar 2020 08:44:34 -0400 Received: from mail.kernel.org ([198.145.29.99]:46844 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727752AbgCJMob (ORCPT ); Tue, 10 Mar 2020 08:44:31 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 53C1824691; Tue, 10 Mar 2020 12:44:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1583844270; bh=8Wu/2aOxnCpRNo8O23+t6KoOaYC3NPHia+8+AOmLd7k=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=V5x9rSxJcg55U7ROygt2IzXcOHAvtU4WDK8pfA1M0PmOsDt1LsT+hFiHpnnFEhqBD qijd/BaeeWFkiQdqebr9Q7N2qlIXWvsevV5jBRVdLlGeH/zfajkFas6XTn9wXjfBw7 VMYYGE7adiNVGkNJBpPQFmoAclq20yn4h3/+6wlc= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Petr Mladek , Sergey Senozhatsky , Tommi Rantala Subject: [PATCH 4.9 20/88] sysrq: Remove duplicated sysrq message Date: Tue, 10 Mar 2020 13:38:28 +0100 Message-Id: <20200310123611.073762825@linuxfoundation.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200310123606.543939933@linuxfoundation.org> References: <20200310123606.543939933@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Petr Mladek commit c3fee60908db4a8594f2e4a2131998384b8fa006 upstream. The commit 97f5f0cd8cd0a0544 ("Input: implement SysRq as a separate input handler") added pr_fmt() definition. It caused a duplicated message prefix in the sysrq header messages, for example: [ 177.053931] sysrq: SysRq : Show backtrace of all active CPUs [ 742.864776] sysrq: SysRq : HELP : loglevel(0-9) reboot(b) crash(c) Fixes: 97f5f0cd8cd0a05 ("Input: implement SysRq as a separate input handler") Signed-off-by: Petr Mladek Reviewed-by: Sergey Senozhatsky Cc: Tommi Rantala Signed-off-by: Greg Kroah-Hartman --- drivers/tty/sysrq.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) --- a/drivers/tty/sysrq.c +++ b/drivers/tty/sysrq.c @@ -543,7 +543,6 @@ void __handle_sysrq(int key, bool check_ */ orig_log_level = console_loglevel; console_loglevel = CONSOLE_LOGLEVEL_DEFAULT; - pr_info("SysRq : "); op_p = __sysrq_get_key_op(key); if (op_p) { @@ -552,15 +551,15 @@ void __handle_sysrq(int key, bool check_ * should not) and is the invoked operation enabled? */ if (!check_mask || sysrq_on_mask(op_p->enable_mask)) { - pr_cont("%s\n", op_p->action_msg); + pr_info("%s\n", op_p->action_msg); console_loglevel = orig_log_level; op_p->handler(key); } else { - pr_cont("This sysrq operation is disabled.\n"); + pr_info("This sysrq operation is disabled.\n"); console_loglevel = orig_log_level; } } else { - pr_cont("HELP : "); + pr_info("HELP : "); /* Only print the help msg once per handler */ for (i = 0; i < ARRAY_SIZE(sysrq_key_table); i++) { if (sysrq_key_table[i]) {