Received: by 2002:a05:622a:251a:b0:39a:b4a2:e86 with SMTP id cm26csp528579qtb; Wed, 19 Oct 2022 08:10:41 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4hpDJLC2CGMdwdWr6I//+6eQjuCCE3Hx5/4k3q/X9HhfCLAwNJfsd6S8vFHZiChLawguCq X-Received: by 2002:a05:6402:540d:b0:450:bda7:f76e with SMTP id ev13-20020a056402540d00b00450bda7f76emr8060626edb.249.1666192241630; Wed, 19 Oct 2022 08:10:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666192241; cv=none; d=google.com; s=arc-20160816; b=iLwravsIc0VsrhAe8c5fZvzQd/qiK+239HGnsXFmtuTno25BWs3TuDF/1aVmqS03rW 4ZTBNCmKGWnHz/4p+ibJjIX9Bg52RtF+YGXT4TX97h0XFkRlqMg+W9F5VRIp+rY3OcIX kfwveYn6jHEXHuVx/ETb8CJi47h3NkiHoqiNUI3ddSVmh0lxu9hzwCe0lQA6Qyg3VGrg KCz+PPC11P/+4OKsc9P899B/dpS2JtaJmtH6eIFKZZm0ExYwNjn79DL20MfYIRN5UDXS eSfH6QQ9ZVVFRvGEno0zC4H1pT7utXX8ZXCyHCR76qXB6ltBwuQPOLfrrEnmqv5gkjEt ORQA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:dkim-signature :dkim-signature:from; bh=I1RFx/v+hUfcDGQrJ2jjINSDPUuF1n3qxJyJC8w20Fo=; b=ax+d70vTxKYwqgPPQiVbF28XCNy8WHs4pNAS00JxNuwNbQxRxnPAkYqyuo2zAGRWN/ /MaynXrvKWTqUXXISBdYqLPVaWWnOpAPi+XVhog3Gwr5DkV4jYmELhTTB+t/XZg5N2KH nklLX7resaNW9hjVBnQjGfrr77UH71a07GiDpw+emvj/4goDsioybRrswLaN3jSOVaJE UVnAyxCCTg2wqlqgL4elf90wK6Qf88/IZlg/0yzn7jR3Ml87SJmo/dWqNP/lxYl1dpXa 5kavJRZ8lwrngA6QoEd51qiVF6UtAoxbQUF6hnI7Frs9HchbqcHObm4vPmHbWg5452/R Jsdw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=Na76VoWV; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sg39-20020a170907a42700b0073dd47c3873si13603845ejc.878.2022.10.19.08.10.14; Wed, 19 Oct 2022 08:10:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=Na76VoWV; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232040AbiJSPGU (ORCPT + 99 others); Wed, 19 Oct 2022 11:06:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39858 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231804AbiJSPF0 (ORCPT ); Wed, 19 Oct 2022 11:05:26 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4EA86192D9F for ; Wed, 19 Oct 2022 07:59:05 -0700 (PDT) From: John Ogness DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1666191372; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=I1RFx/v+hUfcDGQrJ2jjINSDPUuF1n3qxJyJC8w20Fo=; b=Na76VoWVvHR8U/NeE5ZW4Qj/8y6x7pe9hXOgikZ8soMx+eMpjEC1D0Ljtsuf7gKOPi1SDV O3H/i2rcTIQgphMFvzlgRv/uQQZ/LEqst5WRZnTXPkWrOxFhCP0cC+X4xmwV9QwQt8kwca JYqIAB/VA0uqLjmgRGxiFV3y2r4MhAxXTUQjFEifIzKwTlsUDV55eIk4i97ma0O49fC/xv vZIf5vcZpREDTpUHMQcJcVIUftRDZvqEiNVhEF4yBmFJvpLY8XZrmnW3/QU04Bt97BGLkB AELofnWb5Zk+quDqxs23odjOpZ43C65y97abkXno++P/O3VWUEZmj6ZrHjrAFQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1666191372; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=I1RFx/v+hUfcDGQrJ2jjINSDPUuF1n3qxJyJC8w20Fo=; b=bXJPsQ9Ibdzn9lP6cPILeOojpe35Hpu6UnYqHQ3BjsYI2l13B6GR71QgyJ9Uqh17/ObVif drEUXkAw21hR9pBg== To: Petr Mladek Cc: Sergey Senozhatsky , Steven Rostedt , Thomas Gleixner , linux-kernel@vger.kernel.org, Jason Wessel , Daniel Thompson , Douglas Anderson , Luis Chamberlain , Aaron Tomlin , kgdb-bugreport@lists.sourceforge.net Subject: [PATCH printk v2 19/38] kdb: kdb_io: use console_is_enabled() Date: Wed, 19 Oct 2022 17:01:41 +0206 Message-Id: <20221019145600.1282823-20-john.ogness@linutronix.de> In-Reply-To: <20221019145600.1282823-1-john.ogness@linutronix.de> References: <20221019145600.1282823-1-john.ogness@linutronix.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,INVALID_DATE_TZ_ABSURD, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Replace (console->flags & CON_ENABLED) usage with console_is_enabled(). Signed-off-by: John Ogness --- kernel/debug/kdb/kdb_io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/debug/kdb/kdb_io.c b/kernel/debug/kdb/kdb_io.c index 67d3c48a1522..550fe8b456ec 100644 --- a/kernel/debug/kdb/kdb_io.c +++ b/kernel/debug/kdb/kdb_io.c @@ -559,7 +559,7 @@ static void kdb_msg_write(const char *msg, int msg_len) } for_each_console(c) { - if (!(c->flags & CON_ENABLED)) + if (!console_is_enabled(c)) continue; if (c == dbg_io_ops->cons) continue; -- 2.30.2