Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1832992rwb; Mon, 7 Nov 2022 06:22:15 -0800 (PST) X-Google-Smtp-Source: AMsMyM5gv9xZZo8X1cbeLbBGXSmARlOhGQshuFJyzzTIvUavSRdZ20YO37awg8wxFAlIfkfRuwee X-Received: by 2002:a17:907:1c17:b0:7ae:3bdb:5666 with SMTP id nc23-20020a1709071c1700b007ae3bdb5666mr15069667ejc.430.1667830935091; Mon, 07 Nov 2022 06:22:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667830935; cv=none; d=google.com; s=arc-20160816; b=SI38UrP6Fh0+WevsZ5RgnwQ401O5r5MEzMoDFQUJqse6pkl3jghvbUmH2O62ST5T9+ S03FuOxabw4bHTlJv1GzCmX9MAAzt5s0jEnERpwJeBtJAfuH//pAmXNheuzZpeHXyQ/b A7OhO2giw4HwfGJKketvz9btkgeBrW/mDbxYHGGdgHMjIBKts6ws/5wIHwxp/tmoCMgp s0K0HHNuG3g1twqyuexegciJ6T31mSaKltWmeoHOTNRILpECGbxZeYvWdUF8l8Io1PbX Ym8RcvWgwIWRIsTpPro96RxFwyyWJKGHOX+yaHIU6e78oXd424w+9lNpk0HMPsU3NMFV EBjQ== 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=je6BJxg9zIGvpozBTcqdrPDtOdfb/xlqXdr2RuFn3Cs=; b=jrVNrZUKdjm0vUu7Dvhcp6QmJ3I0msgEqeVBpQNaB9dKZZN7B2tV8bn+OS5CVRldsw mE4GQy73MYW6ah3pAC3ZioljSzclpPDgC0H/JljcanE4KBw7zASjkMKVQs5oL8P3z0ll rMfVT45P3L+27V4Hx5sv8T3HeD4rDHdg1e9kUuRpuqn9Kg9O+baa+qmQXHxnpj2f/mmM efJyjiGM+yBlzf4pCvqkxzJLUYMGNKF1kIvzmtrhrbryX9Qi6lAmuczZ7uhTPUYweJ2X HZ5Zrekh/0fPmw8GVDEDUKMGeTBBNEYdfX7SDuggErHtK5EC9AwCumN6BWMNvF5WFvrS PrjA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=xStyNuRD; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; 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 nc18-20020a1709071c1200b00797e151e571si10907306ejc.36.2022.11.07.06.21.52; Mon, 07 Nov 2022 06:22:15 -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=xStyNuRD; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; 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 S232319AbiKGOSB (ORCPT + 93 others); Mon, 7 Nov 2022 09:18:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55686 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232117AbiKGOQq (ORCPT ); Mon, 7 Nov 2022 09:16:46 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E51B01D0E5 for ; Mon, 7 Nov 2022 06:16:45 -0800 (PST) From: John Ogness DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1667830604; 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=je6BJxg9zIGvpozBTcqdrPDtOdfb/xlqXdr2RuFn3Cs=; b=xStyNuRDwQZqAStcI5UdpJk/G1E5RxVmu6uOQl+HxB1LsyG+UGrqEo1GBdH5tNIsVYbp31 0sGdsUMWqMJ/RIw/dqRua8mTPCiC2Bi6yXAUtwiWaId98XBGkDmKHPA2T1r7BIup48ey9t V9t+le50KAGrPTn4fCw91P4Os0mVXzm0RBzuzyUZYvXZ4/TFQS0VlpLfWhhNciYokn7bY0 x6OS3kQVIDIkRsGimBU+tA3J0nxK/4cLvsdYUYYb7XEy3sJM89hJF40SlQ4jDenQhvJNj1 T4y6vF+anyQgoWACwNMjdC5+tAh9Q1X1KynBM24kz9ifzeNZquHauzk0EDw2rQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1667830604; 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=je6BJxg9zIGvpozBTcqdrPDtOdfb/xlqXdr2RuFn3Cs=; b=fU3tEDpTAS3rUjjLodJQU8W30Uff0X7RCSHHMp6eNmbUMCNdxpTq68atryVxFBzRoHmaAA LJxSkx1rw4wUSjBA== To: Petr Mladek Cc: Sergey Senozhatsky , Steven Rostedt , Thomas Gleixner , linux-kernel@vger.kernel.org, Richard Weinberger , Anton Ivanov , Johannes Berg , linux-um@lists.infradead.org Subject: [PATCH printk v3 09/40] um: kmsg_dump: use console_is_enabled() Date: Mon, 7 Nov 2022 15:22:07 +0106 Message-Id: <20221107141638.3790965-10-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 --- arch/um/kernel/kmsg_dump.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/um/kernel/kmsg_dump.c b/arch/um/kernel/kmsg_dump.c index 40abf1e9ccb1..f0233e2f8de0 100644 --- a/arch/um/kernel/kmsg_dump.c +++ b/arch/um/kernel/kmsg_dump.c @@ -32,7 +32,7 @@ static void kmsg_dumper_stdout(struct kmsg_dumper *dumper, * expected to output the crash information. */ if (strcmp(con->name, "ttynull") != 0 && - (con->flags & CON_ENABLED)) { + console_is_enabled(con)) { break; } } -- 2.30.2