[PATCH 6/6] menu: Add debugging

Simon Glass sjg at chromium.org
Sat Jun 17 12:49:53 CEST 2023


Signed-off-by: Simon Glass <sjg at chromium.org>
---

 common/menu.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/common/menu.c b/common/menu.c
index c81494b3d1f3..fe27262ebdd0 100644
--- a/common/menu.c
+++ b/common/menu.c
@@ -15,7 +15,7 @@
 
 #include "menu.h"
 
-#define ansi 1
+#define ansi 0
 
 /*
  * Internally, each item in a menu is represented by a struct menu_item.
@@ -447,8 +447,10 @@ enum bootmenu_key bootmenu_autoboot_loop(struct bootmenu_data *menu,
 			}
 
 			c = getchar();
+			printf("\n [c=%x] \n", c);
 
 			ichar = cli_ch_process(cch, c);
+			printf("\n [i=%x %d] \n", ichar, cch->esc_len);
 
 			if (!ichar)
 				continue;
-- 
2.41.0.162.gfafddb0af9-goog



More information about the U-Boot mailing list