Message ID | 20250909151824.2327219-17-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=1757431179; bh=1ZS+TtqeB0bLxok7Tc68O9g3Fj/pEoN2RDBxGqgCHpk=; 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=nAwCT5h7BRrdOUxRqctJjkc9mhEKDoHrq5B2X+Muu9ijZDAFjoQTMnJSx2S2shJXH qg/WfsIhDq58IFRPhykKbJF9+Ng+qvVtcuUmOsCXA/45VrAS4MRt2Jd7KgnOmHNLIF qXOxEKkLgQLQQdJ2tx0+Vcj8WHduzH8w9SGpH6jRmoK9hhKC130FxaJHU6xuEwa5lH 6o9eXoqyXzRz8ASDZYKiO9jOmc9RCzPrJRY0g/wRwoEy8aDd9/t6ocjyIgAj4RH3rX VoArv33mXJVbhob6O6AIFPRmRTciATfbIysHJpnkfc7y0rWR4lm/PwttgYsmBQ/bp1 7E47PrsgxVasg== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id BC39B67A85 for <u-boot-concept@u-boot.org>; Tue, 9 Sep 2025 09:19:39 -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 bkysevY_BA-q for <u-boot-concept@u-boot.org>; Tue, 9 Sep 2025 09:19:39 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1757431179; bh=1ZS+TtqeB0bLxok7Tc68O9g3Fj/pEoN2RDBxGqgCHpk=; 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=nAwCT5h7BRrdOUxRqctJjkc9mhEKDoHrq5B2X+Muu9ijZDAFjoQTMnJSx2S2shJXH qg/WfsIhDq58IFRPhykKbJF9+Ng+qvVtcuUmOsCXA/45VrAS4MRt2Jd7KgnOmHNLIF qXOxEKkLgQLQQdJ2tx0+Vcj8WHduzH8w9SGpH6jRmoK9hhKC130FxaJHU6xuEwa5lH 6o9eXoqyXzRz8ASDZYKiO9jOmc9RCzPrJRY0g/wRwoEy8aDd9/t6ocjyIgAj4RH3rX VoArv33mXJVbhob6O6AIFPRmRTciATfbIysHJpnkfc7y0rWR4lm/PwttgYsmBQ/bp1 7E47PrsgxVasg== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id A4E2367A7E for <u-boot-concept@u-boot.org>; Tue, 9 Sep 2025 09:19:39 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1757431177; bh=+hKKNPnshRbPVe10KEcnrheVcuF+Ebw58aJWggvg0lY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ZuEYU+Zle1WfeKL7DNtL3zqJdhplpUc0sawe6IwWmJOwE3xTzEpSlyxP9x1itwbi5 ybJIxY9FB9nfyIPzubZfGoQnDgBY1eDIanlqz4jaqry8Qse4rySvX3869zIAVAvTCM rXjjzw1aac3HFt1qe3Yd4eC+ebkn2r+Lf3ysGR1e2Dp8ZcPBdY0yybkLIc2j462xjd Mh7E+7rnoDYEYcJepfQgFYHHfwxNupxe6dF7aHTir6hlaOH/9B2uzA2z4qFgbGd1SE BArwPIgII5rdPyi/0/NKZ8eA9u7upB1TH3l0tNV06kjwzWYf66BB7NDqohAobvsO0A 82jw6txKsHzSg== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 4AE5667A77; Tue, 9 Sep 2025 09:19:37 -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 oAVSwElYZOjM; Tue, 9 Sep 2025 09:19:37 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1757431176; bh=oaRqgY+2EhutjV9/omO2EHpumOUmVGDh3F4JHEtG+J0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KVt5X928HaFiDuCm8R+Xa32vWz0Q9FVilfhdUDff+OFZZEUA00Rq0EFvJYtIVL+u8 kuADDrSevqmHenVfZMuveEm4mbw+eAcUR8i0Yt/pnzEOgFmyEQVY0NwvH9sdAVb87m /5fzXrMpskmYto8L1uWklEYwm/BrPnz6x8UYhD0gASh5TZNN6vRhbnAHbSOpcaUeRw B7udejgCXdxqwRGlurDLa7D+XGNzJbeaR0IesmvsCUO5dsKNpZ4Ux+TfwunbFZTmYm hDU0I33jrpJY5FMH2hiJ3MhkiYGtbp1LiWz7Np7jeMulC8iJOK9ssiHAdhy0G7FvhX F1AbV9kYAJsRA== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id 66741679F7; Tue, 9 Sep 2025 09:19:36 -0600 (MDT) From: Simon Glass <sjg@u-boot.org> To: U-Boot Concept <concept@u-boot.org> Date: Tue, 9 Sep 2025 09:18:13 -0600 Message-ID: <20250909151824.2327219-17-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250909151824.2327219-1-sjg@u-boot.org> References: <20250909151824.2327219-1-sjg@u-boot.org> MIME-Version: 1.0 Message-ID-Hash: X3D27VAK3ENH5LWSXRZH52MEVVGTXILR X-Message-ID-Hash: X3D27VAK3ENH5LWSXRZH52MEVVGTXILR 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 16/18] ulib: Adjust the test to check symbol renaming 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/X3D27VAK3ENH5LWSXRZH52MEVVGTXILR/> 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 |
ulib: Complete initial U-Boot library
|
|
Commit Message
Simon Glass
Sept. 9, 2025, 3:18 p.m. UTC
From: Simon Glass <sjg@chromium.org> Update the test to use both the system printf() and the U-Boot one, in the same program. This provides verification that symbol-renaming is working as expected. Signed-off-by: Simon Glass <sjg@chromium.org> --- test/ulib/ulib_test.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/test/ulib/ulib_test.c b/test/ulib/ulib_test.c index 5daf949a74c..c2d518e1b28 100644 --- a/test/ulib/ulib_test.c +++ b/test/ulib/ulib_test.c @@ -13,6 +13,7 @@ #include <string.h> #include <os.h> +#include <u-boot-api.h> #include <u-boot-lib.h> /* Runtime detection of link type using /proc/self/maps */ @@ -48,13 +49,16 @@ int main(int argc, char *argv[]) { int ret; + printf("Uses libc printf before ulib_init\n"); + ret = ulib_init(argv[0]); if (ret) return 1; - printf("Hello, world\n"); - printf("\n- U-Boot\n"); - printf("\nPS: This program is %s\n", detect_link_type()); + ub_printf("Hello, world from ub_printf\n"); + ub_printf("\n- U-Boot\n"); + printf("another printf()\n"); + ub_printf("\nPS: This program is %s\n", detect_link_type()); return ret; }