Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1939604rwb; Mon, 7 Nov 2022 07:26:17 -0800 (PST) X-Google-Smtp-Source: AMsMyM7aPjwWi3AIICiSKbDGij2bcUjtqb2zqYFPx8IrGiW/b1KG/ws0JhWyBYCAnOsKI7DHAZuj X-Received: by 2002:a05:6a00:2315:b0:56d:a084:a77d with SMTP id h21-20020a056a00231500b0056da084a77dmr38556221pfh.53.1667834777181; Mon, 07 Nov 2022 07:26:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667834777; cv=none; d=google.com; s=arc-20160816; b=us9gyzKfs89+Owwv5kbkRHbUzmRfq0Zb3ba5o/aGdr/2ges9svG8vCljOC8FDo9/P+ X3iIQlbyzVpleNND72WRSmEYOdDE2KNXCfIL09h4Gy21aI8sufbLRt7fdLS/TBjGB5Kw oDx/V2bTk5e3yX20zZPCfTLJVJjzj3tx+tyUdeWtX6bttHMQDFu+DLbPHi0u3+8lx5Wt p+xrHlSrxK825NO69IOlsKh2nboD8PW6ST9oRA2gM1GXuEPXrljg4g6AD+h8kWFgJA7q BoqCgF0sdv5oL3ynza3Kchn0jJOy1YwA2/Ujk9OJaKT3jIWVbNv+EHnxi3QLjWq12nGf NXEg== 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=vshPUjs+tNn2er+3l3r7gbH9xPovLwtdpxV7dKrVCmE=; b=cBhcUFuOLgijG1UHJbFaGeD0FJTvBdpbBRHBsJW9d/OMEHB0UjYEAOUFZU7vOWx2ne +pBaAyHRja9BZ7R25fYCbwp/xfqEMUyA5o2joRfXmktXJ5ptngqJZgvFimKLFr0f2LHF mjg36Hjr58LZL6CBixQZSQFiITvJQW+eIjWW+lNQbLit7JaI9Gm4OuvxeWPsE5dlRbuu Dg5E0rQiYzDtQtSlEU9qNJ+7GE6d0EvFVOQVJ7TXl9GvWU6xXeKRWxmgfCayFLCyyc5p gLA3VbvwYDMB0kH62UM0mQcDqq2JQ6MRGwKx+LalqYJ5+/+TPh7yWm8/qAc6vaktyUv/ nZPA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=zb1YAY8y; dkim=neutral (no key) header.i=@linutronix.de header.b=ZL1s3Yfc; 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 q207-20020a632ad8000000b00462566bfda8si10948755pgq.788.2022.11.07.07.26.05; Mon, 07 Nov 2022 07:26:17 -0800 (PST) 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=zb1YAY8y; dkim=neutral (no key) header.i=@linutronix.de header.b=ZL1s3Yfc; 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 S232258AbiKGORb (ORCPT + 93 others); Mon, 7 Nov 2022 09:17:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55670 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232123AbiKGOQr (ORCPT ); Mon, 7 Nov 2022 09:16:47 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8781C1BE94 for ; Mon, 7 Nov 2022 06:16:46 -0800 (PST) From: John Ogness DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1667830605; 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=vshPUjs+tNn2er+3l3r7gbH9xPovLwtdpxV7dKrVCmE=; b=zb1YAY8yix2bhnE9pEpra80m87LTA6TzAm/0q2w3BOf6hMO2dBz7XVLtQC4AWi7Rx/T9Rq Aapv50ZZ4tgM5ZXneMvSzyhKYN5TLNn9FaVKB4bgNTg1txoIlhp1zXkvNt8eIksoMJEDk6 p5qPCcq4LL6MerdYTjAdkNHfjKLalhZ6aZNE9mYD43rhaqBSposGNpPQn1pQwvZS7sONZC Ul1tEqaeZGzVsQG81yIVl/TBsS8XEodDUC6fikF5eK9zJOjk1oHRNx4V+ZXNIDODyKjxv9 HCtzgOwxyP33M3cRS/eG/Bcp9S7W4kg1DWu74crGl0WGtsOpNvke0+xprx9CDA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1667830605; 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=vshPUjs+tNn2er+3l3r7gbH9xPovLwtdpxV7dKrVCmE=; b=ZL1s3YfcydPxFz4H6XCS1dV85J+S6JAdu8CXSSZE4dwbrB21amSpVdsz60/p/XSVKBlY8m fXkhjhG8i2JCSECA== 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 v3 10/40] kdb: kdb_io: use console_is_enabled() Date: Mon, 7 Nov 2022 15:22:08 +0106 Message-Id: <20221107141638.3790965-11-john.ogness@linutronix.de> In-Reply-To: <20221107141638.3790965-1-john.ogness@linutronix.de> References: <20221107141638.3790965-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 Reviewed-by: Petr Mladek Reviewed-by: Douglas Anderson --- 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