Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 360BBEB64D9 for ; Sat, 17 Jun 2023 10:51:28 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id CE06686324; Sat, 17 Jun 2023 12:50:37 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="PFAm7ucE"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 759EA862EF; Sat, 17 Jun 2023 12:50:28 +0200 (CEST) Received: from mail-wm1-x331.google.com (mail-wm1-x331.google.com [IPv6:2a00:1450:4864:20::331]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 77B7A86301 for ; Sat, 17 Jun 2023 12:50:24 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@chromium.org Received: by mail-wm1-x331.google.com with SMTP id 5b1f17b1804b1-3f8fcaa31c7so10557145e9.3 for ; Sat, 17 Jun 2023 03:50:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1686999024; x=1689591024; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=UQdUGGE/87Dnb0501fnJInVVs7IGOsCPssW6v38yV3w=; b=PFAm7ucEl9JE5sgJq5h/cjMQQC2i/YZBDaDlqZR1Gl4vs2nUoXpg2Cn9FbZU4DB3aj zW2MG0THoY17VqgnbZlMr8V8P8KS09JpDc38Ad4sfkZNRBte9MGPTHd0I9HUqSmzolGB yHmKopjkxkFFAST6n65szLjWfQh9duzxzjXWg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686999024; x=1689591024; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=UQdUGGE/87Dnb0501fnJInVVs7IGOsCPssW6v38yV3w=; b=TvAedc2FRJtZtioJvaL/a5delzyej1ddVPFk1qs4VK2UeLdGVBgk0Ehz1FpwapGVA1 LqAxjSG78z028ulkTyfieLGPu/UjN6VBY3w7qA0J6TIMqEvirJwZB6zsTloyPg/4W7Bd qA0i/pLeeEsEGxx4eLaIm19h22YQXROycjzQhM/Cje5He6UKxVWPlyMKMALQFHKYEZQC wiT5qzXvxill3T1LY2QvYl3eFoA4JqRFit3gTM842pR+b3OODjUJVCLKKsp/Pkn6PZDy N2lXbTpHQS7g7kW9Z66zVKmMEh7KGZP9zdfrLxgXw3AQYrajOSPx8fLPOKfDN1bA5kT4 uLPQ== X-Gm-Message-State: AC+VfDzw13toQYE2CZ6yJSxWMzkRfwgDMk1iEyNrfWrUTOMNFxWr9wyY S9DFyMCOt9jaVaJ1B1xOleBNi9NVjhA9UIm+sYY= X-Google-Smtp-Source: ACHHUZ62LqCIibb26EWWtkMBWxYo+gzjxa+9eQxWsqSplvQcwQQiSVkUAbzw50ATeue9cAn1Umnllw== X-Received: by 2002:a05:600c:21c9:b0:3f7:678a:cf20 with SMTP id x9-20020a05600c21c900b003f7678acf20mr4018813wmj.16.1686999023667; Sat, 17 Jun 2023 03:50:23 -0700 (PDT) Received: from sjg1.roam.corp.google.com (79-67-123-132.dynamic.dsl.as9105.com. [79.67.123.132]) by smtp.gmail.com with ESMTPSA id l22-20020a7bc356000000b003f7e4d143cfsm4735171wmj.15.2023.06.17.03.50.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 17 Jun 2023 03:50:23 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: =?UTF-8?q?Pali=20Roh=C3=A1r?= , Simon Glass Subject: [PATCH 6/6] menu: Add debugging Date: Sat, 17 Jun 2023 11:49:53 +0100 Message-ID: <20230617104956.1402370-7-sjg@chromium.org> X-Mailer: git-send-email 2.41.0.162.gfafddb0af9-goog In-Reply-To: <20230617104956.1402370-1-sjg@chromium.org> References: <20230617104956.1402370-1-sjg@chromium.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean Signed-off-by: Simon Glass --- 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