From patchwork Fri Dec 11 10:55:51 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bin Meng X-Patchwork-Id: 555668 X-Patchwork-Delegate: bmeng.cn@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 74A7614017E for ; Fri, 11 Dec 2015 21:54:42 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=AYtwQAhd; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id CA0C54B76D; Fri, 11 Dec 2015 11:54:00 +0100 (CET) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id k1OeFgrFi2zy; Fri, 11 Dec 2015 11:54:00 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 9D67A4B67C; Fri, 11 Dec 2015 11:53:40 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 2BD874B6F3 for ; Fri, 11 Dec 2015 11:53:17 +0100 (CET) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id QDpLw61jDkbr for ; Fri, 11 Dec 2015 11:53:17 +0100 (CET) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-pa0-f51.google.com (mail-pa0-f51.google.com [209.85.220.51]) by theia.denx.de (Postfix) with ESMTPS id 4618C4B6BA for ; Fri, 11 Dec 2015 11:53:07 +0100 (CET) Received: by pabur14 with SMTP id ur14so64161067pab.0 for ; Fri, 11 Dec 2015 02:53:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:in-reply-to:references; bh=e124XVAmmYXqcWiMENEJvhIDAZsxvZO4xAGBHmGzXn4=; b=AYtwQAhdebhBlOwV0bcT+O3jMpLYETVER8InyTb9/lCnrmlZQskFJJSpc99Ooi5rBX Ft1OdnEXfx1NeyB1ZISSB7cf5spfG6oEqYPnuE+NGEJV/LoFiDHs86vtP4o43ARS1+ME To+2QO7Vk7HdqxgK8ctLQoksgK7pB1qbn7GK68S1PvYsNmrVm6DPNNlZ8f2nBn+qdQxd lHHhm7PQFRP9hfMihWtsSiCpYZ8TsdAuJpIArKg2lSZ4ACxHbrAzRoEaVjtyQaN/hiEv a9Z2ROBdETXD1sQg8hmtaOqrM0JkQPZmEFXhooiAZeXe2TQgzEWUhSUtiBWgBzRVe8yX XUMQ== X-Received: by 10.66.253.197 with SMTP id ac5mr24161116pad.159.1449831185760; Fri, 11 Dec 2015 02:53:05 -0800 (PST) Received: from ala-d2121-lx1.wrs.com (unknown-157-139.windriver.com. [147.11.157.139]) by smtp.gmail.com with ESMTPSA id w20sm24383441pfi.55.2015.12.11.02.53.05 (version=TLS1_1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 11 Dec 2015 02:53:05 -0800 (PST) From: Bin Meng To: Simon Glass , U-Boot Mailing List Date: Fri, 11 Dec 2015 02:55:51 -0800 Message-Id: <1449831353-933-9-git-send-email-bmeng.cn@gmail.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1449831353-933-1-git-send-email-bmeng.cn@gmail.com> References: <1449831353-933-1-git-send-email-bmeng.cn@gmail.com> Subject: [U-Boot] [PATCH 08/10] x86: fsp: Always use hex numbers in the hob command output X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 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" In the 'fsp hob' command output, decimal numbers and hexadecimal numbers are used mixedly. Now change to always use hex numbers to keep consistency. Signed-off-by: Bin Meng Acked-by: Simon Glass --- arch/x86/lib/fsp/cmd_fsp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/x86/lib/fsp/cmd_fsp.c b/arch/x86/lib/fsp/cmd_fsp.c index 4959edf..2554663 100644 --- a/arch/x86/lib/fsp/cmd_fsp.c +++ b/arch/x86/lib/fsp/cmd_fsp.c @@ -69,7 +69,7 @@ static int do_hob(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) printf("---|----------|-----------|------|-"); printf("------------------------------------------\n"); while (!end_of_hob(hdr)) { - printf("%-2d | %08x | ", i, (unsigned int)hdr); + printf("%02x | %08x | ", i, (unsigned int)hdr); type = hdr->type; if (type == HOB_TYPE_UNUSED) desc = "*Unused*"; @@ -79,7 +79,7 @@ static int do_hob(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) desc = hob_type[type]; else desc = "*Invalid*"; - printf("%-9s | %-4d | ", desc, hdr->len); + printf("%-9s | %04x | ", desc, hdr->len); if (type == HOB_TYPE_MEM_ALLOC || type == HOB_TYPE_RES_DESC || type == HOB_TYPE_GUID_EXT) {