From patchwork Mon Jan 19 20:41:02 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1639 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=1768855358; bh=5ReHzoKmodMk0tkA1Gy5LUZVEmsWmBvhHi65Iz0nGkk=; 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=ibnPmwVHTaEdIudh8G8ZKZWaTiZd813RtO85IBvsoPCPB6NGsYix0D0eyVbZCaKa1 EgfKc9U7CMIWILO0EyGCzqDC/80f+m3P4MCOztcYNLYlrQ1j3sXoctUYAQOJSAMaMa QIuf6HQHu35i56bCjxQzIgfsfNts85LRFTendTDPA9JdEMnW0tHa6ac+gVnkXTPem1 ReyH4kMitu3FFu1cnK8gufZTZ4VzvQ2r7agtfqso8xW/kiam5dd57o0sYQwSzf9Pmg Ods01PxtzAYDdW7/WFNcn8PVnVcRLeX0g6hjQ7G+pfatTTwZ4/HbgVpz1hav5YpZaI Q+7poiaxPlAkg== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 2878369504 for ; Mon, 19 Jan 2026 13:42:38 -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 uDu8n0YdOQI1 for ; Mon, 19 Jan 2026 13:42:38 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1768855358; bh=5ReHzoKmodMk0tkA1Gy5LUZVEmsWmBvhHi65Iz0nGkk=; 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=ibnPmwVHTaEdIudh8G8ZKZWaTiZd813RtO85IBvsoPCPB6NGsYix0D0eyVbZCaKa1 EgfKc9U7CMIWILO0EyGCzqDC/80f+m3P4MCOztcYNLYlrQ1j3sXoctUYAQOJSAMaMa QIuf6HQHu35i56bCjxQzIgfsfNts85LRFTendTDPA9JdEMnW0tHa6ac+gVnkXTPem1 ReyH4kMitu3FFu1cnK8gufZTZ4VzvQ2r7agtfqso8xW/kiam5dd57o0sYQwSzf9Pmg Ods01PxtzAYDdW7/WFNcn8PVnVcRLeX0g6hjQ7G+pfatTTwZ4/HbgVpz1hav5YpZaI Q+7poiaxPlAkg== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 17A53694CE for ; Mon, 19 Jan 2026 13:42:38 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1768855356; bh=Y3MRMh3xJLtl2r5Y6wQn7fzXV+A+uttxBHxQnj1H5u4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Zxozd0oLuN9rgUxQehvkOgXKdx+RPxQDOEJCea7VG6N+XXfLl7aWjcyUHwg895y8c AUAqbZu660a6ktD1ePkg34wMmgI3Y8yfFqnobFqHJaPfstBWXUL1wpEst+W9g5KSoh ufA8Ko+332m4wqghuH3cS+ZtCr8Hqa2Hl9Lt5BTa97Tat1bMZDo5v7jZ+V/qhB/tTO 4R/oX3Rc4ywNu+yH3vpHkuSSb7Xb6DxRmKJFpA2gPHGJuHFlEX/08odZCSAmREvoWi FlNPsZH07w0eBfaaAnlXJNPNjrRcXS9TsUN2k0zY4bCdEDG5AJFJ+heBEIozwEO2W1 bDzM4pzq3iHSg== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 238B4693BA; Mon, 19 Jan 2026 13:42:36 -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 vEMAO0dqXUGh; Mon, 19 Jan 2026 13:42:36 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1768855352; bh=Z50doVVWogws2VEh4Mquyu8ZvYFky+NgdQvMPJmUgbs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Hnm9BuxQ/NRawCQxzAcoPZkn8FJHe0+IRblxQhv2/fuOnnFV2E25QrHeYGIcBzHXb WKdyDuR/VM7fUQBCib9Ni4X3/PGgZZjl9Fb82UqX4k3G4QUkAV2a3uTzgMjD5npgQC 6ZCyEovyJr9iuXjR36oSc8b5NE4nAGbWoi+naBShcEfZZbd+l2gBnG+PNZ16XOPZTh Nl8fAYOPuHPJx0lT01tht1Cb36vwMcqqi9xiAfKxZfIb8V41MhtieUJpUD2egU3oOv spYrzD6U6n1ML8IxM5ZckZ63HQgCjw8F+dGVz3rwj/Xtlwmola/XeHVd4uAfnalJAr uDAYiZefctBtA== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id C9DCD693E3; Mon, 19 Jan 2026 13:42:31 -0700 (MST) From: Simon Glass To: U-Boot Concept Date: Mon, 19 Jan 2026 13:41:02 -0700 Message-ID: <20260119204130.3972647-10-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: JMQYXID4EEO2JO7O6IGQF6JLBCJV7TLM X-Message-ID-Hash: JMQYXID4EEO2JO7O6IGQF6JLBCJV7TLM 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 09/27] video: Log each measured line with log_content() 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 Change log_debug() to log_content() for line measurement logging and add logging for the final line. This allows detailed line-by-line measurement output to be enabled separately from debug logging. Co-developed-by: Claude Opus 4.5 Signed-off-by: Simon Glass --- drivers/video/console_truetype.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/drivers/video/console_truetype.c b/drivers/video/console_truetype.c index f73fb3e6595..98356de2fd2 100644 --- a/drivers/video/console_truetype.c +++ b/drivers/video/console_truetype.c @@ -1075,9 +1075,10 @@ static int truetype_measure(struct udevice *dev, const char *name, uint size, mline.len = (s - text) - start; if (lines && !alist_add(lines, mline)) return log_msg_ret("ttm", -ENOMEM); - log_debug("line x1 %d y0 %d y1 %d start %d len %d text '%.*s'\n", - mline.bbox.x1, mline.bbox.y0, mline.bbox.y1, - mline.start, mline.len, mline.len, text + mline.start); + log_content("line x1 %d y0 %d y1 %d start %d len %d text '%.*s'\n", + mline.bbox.x1, mline.bbox.y0, mline.bbox.y1, + mline.start, mline.len, mline.len, + text + mline.start); start = s - text; start++; @@ -1098,6 +1099,9 @@ static int truetype_measure(struct udevice *dev, const char *name, uint size, mline.len = (s - text) - start; if (lines && !alist_add(lines, mline)) return log_msg_ret("ttM", -ENOMEM); + log_content("line x1 %d y0 %d y1 %d start %d len %d text '%.*s'\n", + mline.bbox.x1, mline.bbox.y0, mline.bbox.y1, + mline.start, mline.len, mline.len, text + mline.start); bbox->valid = true; bbox->x0 = 0;