| Message ID | 20250922180116.3088502-5-sjg@u-boot.org |
|---|---|
| State | New |
| Headers |
Return-Path: <concept-bounces+u-boot-concept=u-boot.org@u-boot.org> X-Original-To: u-boot-concept@u-boot.org Delivered-To: u-boot-concept@u-boot.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1758564108; bh=Wt+MtWZ31l2iajrokJ5ABvZv7mWwNtaZYZwff0GXHqs=; h=From:To:Date:In-Reply-To:References:CC:Subject:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=V2NwMthCYmua69bMQhh31/4mvFRHyFBeaMcnjceeebJh7U1f74x0HwzTk+3cdThVy 6fxLPJP2YYJwxZ7AI1W0BNbadDF+UZsVL0V5FaHFY2s7wLA0ddEpmzke6KZ7d+b7uW GM1i7B/G9isb01rbp4TSJpylrF2jsS9av8Unl4LygjUWpoe10a5pgEYDH2VPOqG1oB 7CnEvyWU1HG6s0Cm/gP4fiJEopkQ+x0juUsfa26wU1ndX6F+8rWXjvhpZgsgEx7TYb R5q7GDEJYzhG49eJJzKwyNIEqiaZE9gcJO33hptt3UoK49dZdFmfRS8QoxI/9EYmlJ lt/ncUhBlQBrw== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 551C567B38 for <u-boot-concept@u-boot.org>; Mon, 22 Sep 2025 12:01:48 -0600 (MDT) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10024) with ESMTP id 2VO2wfCqgFsY for <u-boot-concept@u-boot.org>; Mon, 22 Sep 2025 12:01:48 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1758564108; bh=Wt+MtWZ31l2iajrokJ5ABvZv7mWwNtaZYZwff0GXHqs=; h=From:To:Date:In-Reply-To:References:CC:Subject:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=V2NwMthCYmua69bMQhh31/4mvFRHyFBeaMcnjceeebJh7U1f74x0HwzTk+3cdThVy 6fxLPJP2YYJwxZ7AI1W0BNbadDF+UZsVL0V5FaHFY2s7wLA0ddEpmzke6KZ7d+b7uW GM1i7B/G9isb01rbp4TSJpylrF2jsS9av8Unl4LygjUWpoe10a5pgEYDH2VPOqG1oB 7CnEvyWU1HG6s0Cm/gP4fiJEopkQ+x0juUsfa26wU1ndX6F+8rWXjvhpZgsgEx7TYb R5q7GDEJYzhG49eJJzKwyNIEqiaZE9gcJO33hptt3UoK49dZdFmfRS8QoxI/9EYmlJ lt/ncUhBlQBrw== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 4432C67C32 for <u-boot-concept@u-boot.org>; Mon, 22 Sep 2025 12:01:48 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1758564106; bh=Py9nsPHI8ejCqD9FIwMfjI+HMRlUBAy1NU5iec0ormA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=c13/mHXZanvJvGcMZgnHkC4ssEMRoeBxu7D8XMyYAAbnV3dvUWEfnO8w7eFWB1bpd D/bFIx3lM5pJjwGNh43futPh+c22k340f7wSleOdQuQ9N8BdU/zvlyv1LneRkGNubH 7YEw2UWVhpK1FJ92Os7fs0RKYUen2UFmpm0PGSE1bTB+Rv6Ug86OpLkP8eHiNf6Jpe RFbbDIE2V0r4xaBHe9bQDB3DqPUAh3U6XmW9HhCPfokuqsG/pv2lw+XvHtenn/SUxJ 28Dz060wnpo42U9LIqvF6xq6HCZ1AWg4D94yJG7EtA7fp5GOJFqUC0ni6dA7ZZgnii HkQSoRzjudy5w== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 7058D67B38; Mon, 22 Sep 2025 12:01:46 -0600 (MDT) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10026) with ESMTP id X0xjaoTvGVwu; Mon, 22 Sep 2025 12:01:46 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1758564100; bh=K24+vOADWwZC59597MCrh+UQxY3cU9VFSLr7Xetf2Rk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=D2lANPfIpSEloAvH4Z7XO8n/W7xtRYg9q9ebKUtFopnzPM57q5yf1Phr9gaN8lEDJ N2S4MyEgDFws9WD4Kd8IfQXNMx/wQytKOLcC7KQ58WKbnmIdwpkVfADQwM0PZqsCX4 GO7oW80Hn2hXTTCVLKB1gi2W22FLY7c59o2BMVkI+ELN5kNNIiu31rd00RAevu1ObI Q0UOlZGwoPy+E77S1+iRUrcPrgvMmRwW4Xxv6LICFcSwyf1SgrgRlhqTKrDcc31dnG BCDAfEFKI0zE7aofobiJ8/PBwDkaNLtJ1dGZz14Xb1Dlnq6QtAGFc2x8T7+cxP9xFi uZ4Q8ZVrfbnAg== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id 8C2EF67C32; Mon, 22 Sep 2025 12:01:40 -0600 (MDT) From: Simon Glass <sjg@u-boot.org> To: U-Boot Concept <concept@u-boot.org> Date: Mon, 22 Sep 2025 12:00:48 -0600 Message-ID: <20250922180116.3088502-5-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250922180116.3088502-1-sjg@u-boot.org> References: <20250922180116.3088502-1-sjg@u-boot.org> MIME-Version: 1.0 Message-ID-Hash: 54WUPNVN34OCEN572M3EOG2BEVQ762EK X-Message-ID-Hash: 54WUPNVN34OCEN572M3EOG2BEVQ762EK X-MailFrom: sjg@u-boot.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: Heinrich Schuchardt <xypron.glpk@gmx.de>, Simon Glass <sjg@chromium.org> X-Mailman-Version: 3.3.10 Precedence: list Subject: [Concept] [PATCH 04/24] console: Correct condition for setting enabled pager bypass List-Id: Discussion and patches related to U-Boot Concept <concept.u-boot.org> Archived-At: <https://lists.u-boot.org/archives/list/concept@u-boot.org/message/54WUPNVN34OCEN572M3EOG2BEVQ762EK/> List-Archive: <https://lists.u-boot.org/archives/list/concept@u-boot.org/> List-Help: <mailto:concept-request@u-boot.org?subject=help> List-Owner: <mailto:concept-owner@u-boot.org> List-Post: <mailto:concept@u-boot.org> List-Subscribe: <mailto:concept-join@u-boot.org> List-Unsubscribe: <mailto:concept-leave@u-boot.org> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit |
| Series |
boot: efi: Various improvements to booting with the EFI app
|
|
Commit Message
Simon Glass
Sept. 22, 2025, 6 p.m. UTC
From: Simon Glass <sjg@chromium.org> The pager should be bypassed if the terminal was not detected. Fix the condition which actually says the opposite. Also fix a long line in pager_post() Signed-off-by: Simon Glass <sjg@chromium.org> --- common/console.c | 2 +- common/pager.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/common/console.c b/common/console.c index 77f70588488..561a859dc1e 100644 --- a/common/console.c +++ b/common/console.c @@ -1189,7 +1189,7 @@ static int on_console(const char *name, const char *value, enum env_op op, int lines = calc_check_console_lines(); /* Set bypass mode if not connected to a terminal */ - pager_set_bypass(gd_pager(), lines != 0); + pager_set_bypass(gd_pager(), lines == 0); if (lines) pager_set_page_len(gd_pager(), lines); } diff --git a/common/pager.c b/common/pager.c index 8991d2f93fa..a16937768b6 100644 --- a/common/pager.c +++ b/common/pager.c @@ -20,7 +20,8 @@ const char *pager_post(struct pager *pag, bool use_pager, const char *s) struct membuf old; int ret, len; - if (!pag || !use_pager || pag->test_bypass || pag->state == PAGERST_BYPASS) + if (!pag || !use_pager || pag->test_bypass || + pag->state == PAGERST_BYPASS) return s; len = strlen(s);