From patchwork Thu Sep 4 13:04:48 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 229 Return-Path: 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=1756991175; bh=1UrDgJ5G5+d2vEZ0BKSA+Kjd7oRQVNMA2hn+3tWugWA=; 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=ehsWF3jzQX5I3G8MFhfxAmYiYC1vLB4Kt7GstvtXAygVDhu1cmdKgcSwfvcFCFYWh MwsUK3Cbc++WRd/9fspN+PoAiPpgKCNwLEuUzEBZ4ceREEAndk3Sf8NCAFDnqwYJY8 wRqDD+Q2PuFTH61mABHtyH+DLRCcMtRYhWjHBIubHwDDK0ducTdI9Rd00FTSmZcGVR 5+diwlJo7v5Tgx/2anInZpmf8MTsel7lZWAx5NVhqTpZR0EPe879HTXzKwkJl6gaar EcHwRuI0s+zSlWcnWAP+CHyMvl4bf06v7KQE5xG1RG1dQNsrSSetD4ohYaJ+/GsFFL aRj0ke9X0jRSw== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 6516E6795C for ; Thu, 4 Sep 2025 07:06:15 -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 zUd2WHs2cfHN for ; Thu, 4 Sep 2025 07:06:15 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1756991175; bh=1UrDgJ5G5+d2vEZ0BKSA+Kjd7oRQVNMA2hn+3tWugWA=; 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=ehsWF3jzQX5I3G8MFhfxAmYiYC1vLB4Kt7GstvtXAygVDhu1cmdKgcSwfvcFCFYWh MwsUK3Cbc++WRd/9fspN+PoAiPpgKCNwLEuUzEBZ4ceREEAndk3Sf8NCAFDnqwYJY8 wRqDD+Q2PuFTH61mABHtyH+DLRCcMtRYhWjHBIubHwDDK0ducTdI9Rd00FTSmZcGVR 5+diwlJo7v5Tgx/2anInZpmf8MTsel7lZWAx5NVhqTpZR0EPe879HTXzKwkJl6gaar EcHwRuI0s+zSlWcnWAP+CHyMvl4bf06v7KQE5xG1RG1dQNsrSSetD4ohYaJ+/GsFFL aRj0ke9X0jRSw== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 551BB678C8 for ; Thu, 4 Sep 2025 07:06:15 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1756991173; bh=QYcFj1n1bol1tu4ipXk3Xw6U/eCLKNYPmOri5wdZKu8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=tt9e+SwRhwd10ghtKSUDlLuuB9YkEPzVVxlgW2yQ78IpmX4nb8ABCtcvY56pJTcWE On22dOPT1DA/kgkd4/BejzVd3NWXN8rgYH+mdl/RBOPJ++p71UdXySOH+ybTgS3jiD m0KnCYwubG65fWrWGAZGO66iu0k3CewPP3l4AtUGJYbKmCwWvP0pMrJUy1pfAD3dVL HG6DEZeTHNCHbBTh6XhMRU+NtDipFk2cG2UTGudUX+TrSY0AxDQ5DQCMMmmL/PBQk8 iMhQ6CqbyrS9msrYXyyj/BGD5WARZYwDF43yK3E/t4dugCfZz9J38jAo2IL+slyghv nb9vtP0PliGqg== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 613C7678BA; Thu, 4 Sep 2025 07:06:13 -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 QfrCdJkORMgH; Thu, 4 Sep 2025 07:06:13 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1756991169; bh=u95kda5zpIxP8T0HYILNI6y1Hxjn9OrJ62SCchp8UgM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=mXHv3WW3DMqiem8Lgm2rWUksSWCsjxlljjwZOkJr4G7G3oUj2Fvt9rTKKTiH32CR8 D6GDNs0HIz79O1+yqBz2z/PZRb0TBw8bA4C8zIHMc6CZOMvBKw7I1YtgTKyM09k7Wp i96Blyf5LwtROPB4TwbM/LwX7ePrxsapdJ5Oa6oqmGoMFI+WGQXXjpdr5M4z9WwX8n sJgI0R54H84q7T4EAbMkNgVuL6yZMegKxn/WWiEWzpilqpTZtPQn/Cy7VgpfawEnNu heHaCiRDUC9D9D2t3MkyXUI+rl75dJzKoe2gqMxnKQx04uF24RSbjXNhigLEmKLM9V ofupd4TDCuPlA== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id EA85C67954; Thu, 4 Sep 2025 07:06:08 -0600 (MDT) From: Simon Glass To: U-Boot Concept Date: Thu, 4 Sep 2025 07:04:48 -0600 Message-ID: <20250904130459.848794-16-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250904130459.848794-1-sjg@u-boot.org> References: <20250904130459.848794-1-sjg@u-boot.org> MIME-Version: 1.0 Message-ID-Hash: JL6AOHNYSS5RP2NL5SALBPQJAN5XZGGD X-Message-ID-Hash: JL6AOHNYSS5RP2NL5SALBPQJAN5XZGGD 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 , Simon Glass X-Mailman-Version: 3.3.10 Precedence: list Subject: [Concept] [PATCH 15/18] ulib: Drop the initial banner for the library List-Id: Discussion and patches related to U-Boot Concept Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: Simon Glass When using the library it should start up silently. Drop the initial banner. Signed-off-by: Simon Glass --- lib/display_options.c | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/lib/display_options.c b/lib/display_options.c index 9c6722f0c64..7f9dfcc43ee 100644 --- a/lib/display_options.c +++ b/lib/display_options.c @@ -9,11 +9,14 @@ #include #include #include -#include -#include -#include #include #include +#include +#include +#include +#include + +DECLARE_GLOBAL_DATA_PTR; char *display_options_get_banner_priv(bool newlines, const char *build_tag, char *buf, int size) @@ -47,8 +50,10 @@ int display_options(void) { char buf[DISPLAY_OPTIONS_BANNER_LENGTH]; - display_options_get_banner(true, buf, sizeof(buf)); - printf("%s", buf); + if (!gd_ulib()) { + display_options_get_banner(true, buf, sizeof(buf)); + printf("%s", buf); + } return 0; }