From patchwork Mon Jan 19 20:41:09 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1646 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=1768855390; bh=0vzqIEwANKeiU2is2z27nVKH1CK4/IKKWxauBb1wVec=; 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=grba4zuy1trlbNWi7IusjC57MXk7a6Sf9YsQzXoN8qDajqoSp3st2dHkkSSLUif89 Yc2LzaQbmA+qyCljLHL8Ev1XOgnDJ1598JMddxqcD1iVepluDYJqMKK+F9p2q7fA3D Qr58X5zcNbQICPQny+CjM7rgyLpdWHdd42OHplcK9WiBYmdYwLv9j/slI5HDDqLRzS YbHnSbZja47ZYan3IK81htmKdc7SOQSkVevAlfNPj3Jkfaxkef2Bljt/PIljkOVTMh pyeAQgN1Va6wMMmmIgumeZbivqCRzz41EoloeFhW4Ha2cnYP8Y7iwfe8xroxVUSkkh I0kmlHtT0Qv2g== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 271B869519 for ; Mon, 19 Jan 2026 13:43:10 -0700 (MST) 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 t6A09VFLZRr5 for ; Mon, 19 Jan 2026 13:43:10 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1768855390; bh=0vzqIEwANKeiU2is2z27nVKH1CK4/IKKWxauBb1wVec=; 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=grba4zuy1trlbNWi7IusjC57MXk7a6Sf9YsQzXoN8qDajqoSp3st2dHkkSSLUif89 Yc2LzaQbmA+qyCljLHL8Ev1XOgnDJ1598JMddxqcD1iVepluDYJqMKK+F9p2q7fA3D Qr58X5zcNbQICPQny+CjM7rgyLpdWHdd42OHplcK9WiBYmdYwLv9j/slI5HDDqLRzS YbHnSbZja47ZYan3IK81htmKdc7SOQSkVevAlfNPj3Jkfaxkef2Bljt/PIljkOVTMh pyeAQgN1Va6wMMmmIgumeZbivqCRzz41EoloeFhW4Ha2cnYP8Y7iwfe8xroxVUSkkh I0kmlHtT0Qv2g== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 16D9069504 for ; Mon, 19 Jan 2026 13:43:10 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1768855388; bh=cXW0JFRlESkCQZRFjyMh4P+2YqxQ9/vrT6qksEiR4Io=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=dWePfBjPkgXd8XR44MNXxX2uVP29j/a7vA2EgD4hgBMaF5dfz7V0VIXD+DymDLDUy SIhpFR1wD0VEjxze5lmpDGqmz2spl8p9g3i2imS4c8facMRte+mTfWuL8r+PliZmAi 4OkzYPmEwVNO1ToQgrC+5nke42Nhm0Yb09WERo/d8KCe0EHDahmrm4qKpzyILGRoA4 A/8QZvZbHd4mqCWdlO3TH8+A8WyVJr3TDhTZ7dpZ6qbOEgterWXhpzct7kq64U0S4P L1aVtMcD5TmsVjsrD7kMRrRyigrxzKJdcsEk2aRt8ftWxV6KIle/CawgKN+ABK9Vyv xhiNC6fd3jPYw== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 571E2693E3; Mon, 19 Jan 2026 13:43:08 -0700 (MST) 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 10_NX3W8vFkX; Mon, 19 Jan 2026 13:43:08 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1768855384; bh=iJc8z1/BAE34Ca2vxZ0rzqzHX0uI42+Hu2pBn3UYmQ8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ObxACmBwaZivAn6tvfJDzslXqvKktK9XIGX4xa98Y80hsPgRU16GWwu/+FmW36xyA BnIBBiKd7mcNhgozXIHPdyro0x/mpoqPrjz3Wx0Uz07w9uuy9BZVAd4lBLoNEsGsig 81ng1Bv1BmkFpwUwYyPtnVtcQhPFNubXGdLld49/Q0D0ObcgF306PWfOG0DbuXn0J8 VvWH5CDT5QCfphUNXnEd2uapUWS2ier5vgg/13KLDktTlfzQsFEb0ks/AS8WUkQqP1 PlMQAeu674tsC7dMGgysWfA+Ur9CZTExPjWe81NTkrom/L5+hTUuJrB/wiYOE4LYzg ZmwG0EoqdG8JQ== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id 0D9D0693BA; Mon, 19 Jan 2026 13:43:04 -0700 (MST) From: Simon Glass To: U-Boot Concept Date: Mon, 19 Jan 2026 13:41:09 -0700 Message-ID: <20260119204130.3972647-17-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260119204130.3972647-1-sjg@u-boot.org> References: <20260119204130.3972647-1-sjg@u-boot.org> MIME-Version: 1.0 Message-ID-Hash: LP6PLBLRZ2FPXH5LFRJGUAYCANTKXGUL X-Message-ID-Hash: LP6PLBLRZ2FPXH5LFRJGUAYCANTKXGUL 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: Simon Glass , "Claude Opus 4 . 5" X-Mailman-Version: 3.3.10 Precedence: list Subject: [Concept] [PATCH 16/27] expo: Add debug logging to scene_txtin_arrange() 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 Add logging to show arr->label_width and margin values used when arranging text-input objects. This helps debug alignment issues. Co-developed-by: Claude Opus 4.5 Signed-off-by: Simon Glass --- boot/scene_txtin.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/boot/scene_txtin.c b/boot/scene_txtin.c index dbd2555f71d..99fad16c11f 100644 --- a/boot/scene_txtin.c +++ b/boot/scene_txtin.c @@ -42,6 +42,10 @@ int scene_txtin_arrange(struct scene *scn, struct expo_arrange_info *arr, if (ret < 0) return log_msg_ret("lab", ret); + if (scene_chklog(obj->name)) + log_debug("arr->label_width %d margin %d\n", + arr->label_width, + theme->textline_label_margin_x); x += arr->label_width + theme->textline_label_margin_x; }