[Concept,16/27] expo: Add debug logging to scene_txtin_arrange()

Message ID 20260119204130.3972647-17-sjg@u-boot.org
State New
Headers
Series Expo debugging and textedit improvements (part E) |

Commit Message

Simon Glass Jan. 19, 2026, 8:41 p.m. UTC
  From: Simon Glass <simon.glass@canonical.com>

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 <noreply@anthropic.com>
Signed-off-by: Simon Glass <simon.glass@canonical.com>
---

 boot/scene_txtin.c | 4 ++++
 1 file changed, 4 insertions(+)
  

Patch

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;
 	}