From patchwork Wed Jul 5 17:47:15 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heinrich Schuchardt X-Patchwork-Id: 784804 X-Patchwork-Delegate: agraf@suse.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 3x2pM012J9z9s5L for ; Thu, 6 Jul 2017 03:50:52 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id E85FDC21EA1; Wed, 5 Jul 2017 17:49:55 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=FREEMAIL_FROM, RCVD_IN_DNSWL_NONE autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 8D6D5C21EE6; Wed, 5 Jul 2017 17:49:15 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 93FF5C21EFC; Wed, 5 Jul 2017 17:48:53 +0000 (UTC) Received: from mout.gmx.net (mout.gmx.net [212.227.15.18]) by lists.denx.de (Postfix) with ESMTPS id 267E4C21EE8 for ; Wed, 5 Jul 2017 17:48:50 +0000 (UTC) Received: from workstation4.fritz.box ([88.152.145.149]) by mail.gmx.com (mrgmx002 [212.227.17.184]) with ESMTPSA (Nemesis) id 0MexFh-1d4QxX3I8v-00ObY0; Wed, 05 Jul 2017 19:48:10 +0200 From: Heinrich Schuchardt To: Alexander Graf Date: Wed, 5 Jul 2017 19:47:15 +0200 Message-Id: <20170705174715.28626-4-xypron.glpk@gmx.de> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170705174715.28626-1-xypron.glpk@gmx.de> References: <20170705174715.28626-1-xypron.glpk@gmx.de> X-Provags-ID: V03:K0:1Ox2K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= Cc: u-boot@lists.denx.de, Heinrich Schuchardt Subject: [U-Boot] [PATCH 3/3] efi_loader: no debug message on wait for key X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" 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 --- 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])