[U-Boot] [PATCH 3/3] efi_loader: no debug message on wait for key

Heinrich Schuchardt xypron.glpk at gmx.de
Wed Jul 5 17:47:15 UTC 2017


If efi_check_event is called in a loop waiting for keyboard input
the screen is flooded with debug messages.

So only write debug message for other events.

Signed-off-by: Heinrich Schuchardt <xypron.glpk at gmx.de>
---
 lib/efi_loader/efi_boottime.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/lib/efi_loader/efi_boottime.c b/lib/efi_loader/efi_boottime.c
index f509d457a7..ec29143306 100644
--- a/lib/efi_loader/efi_boottime.c
+++ b/lib/efi_loader/efi_boottime.c
@@ -341,7 +341,12 @@ static efi_status_t EFIAPI efi_check_event(void *event)
 {
 	int i;
 
-	EFI_ENTRY("%p", event);
+	/* Dont spam us on wait for key */
+	if (event == &efi_events[0])
+		efi_restore_gd();
+	else
+		EFI_ENTRY("%p", event);
+
 	efi_timer_check();
 	for (i = 0; i < ARRAY_SIZE(efi_events); ++i) {
 		if (event != &efi_events[i])
-- 
2.11.0



More information about the U-Boot mailing list