From patchwork Sun Apr 26 19:38:23 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 238550 List-Id: U-Boot discussion From: sjg at chromium.org (Simon Glass) Date: Sun, 26 Apr 2020 13:38:23 -0600 Subject: [PATCH v2 6/7] x86: Add an indication of 32/64-bit to bdinfo In-Reply-To: <20200426193824.171193-1-sjg@chromium.org> References: <20200426193824.171193-1-sjg@chromium.org> Message-ID: <20200426193824.171193-2-sjg@chromium.org> It is useful to know what mode U-Boot is running in. Add a message at the end of the 'bdinfo' output. Signed-off-by: Simon Glass --- Changes in v2: - Add a new patch to indicate 32/64-bit in bdinfo cmd/bdinfo.c | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/bdinfo.c b/cmd/bdinfo.c index d6a7175b37..a3129c9fe1 100644 --- a/cmd/bdinfo.c +++ b/cmd/bdinfo.c @@ -388,6 +388,7 @@ int do_bdinfo(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) print_mhz("ethspeed", bd->bi_ethspeed); #endif print_baudrate(); + printf("Build: %d-bit\n", CONFIG_IS_ENABLED(X86_64) ? 64 : 32); return 0; }