From patchwork Wed Apr 22 00:45:05 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Park, Aiden" X-Patchwork-Id: 1274589 X-Patchwork-Delegate: bmeng.cn@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=intel.com Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 496MFT2Mc5z9sP7 for ; Wed, 22 Apr 2020 10:46:37 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 6CD7581B8F; Wed, 22 Apr 2020 02:46:14 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=intel.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by phobos.denx.de (Postfix, from userid 109) id 4606381BC1; Wed, 22 Apr 2020 02:45:50 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 0450781B8F for ; Wed, 22 Apr 2020 02:45:45 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=aiden.park@intel.com IronPort-SDR: +P1bmicLGWREFh1Q6+ASODgBvblXww/+JP3+ET/jetvq8Qd/aXlKrmX1FL0smS15K/2AypXrkn 9VDgWJZhQ7ZA== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Apr 2020 17:45:45 -0700 IronPort-SDR: 8t9UUzrZR71nA+7RTOdbkV0iW1qF7OE2DDvaFpUlNV47v4bGZYsSiPu9vuAWjOAhe1DdNP4w5M 3iUGMmWO4DaQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.72,412,1580803200"; d="scan'208";a="456305627" Received: from younghyu-desk1.jf.intel.com ([134.134.154.164]) by fmsmga005.fm.intel.com with ESMTP; 21 Apr 2020 17:45:45 -0700 From: aiden.park@intel.com To: bmeng.cn@gmail.com, sjg@chromium.org, u-boot@lists.denx.de Cc: Aiden Park Subject: [PATCH 6/8] x86: Fix 64-bit compile warning Date: Tue, 21 Apr 2020 17:45:05 -0700 Message-Id: <20200422004507.2025-7-aiden.park@intel.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200422004507.2025-1-aiden.park@intel.com> References: <20200422004507.2025-1-aiden.park@intel.com> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.30rc1 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.102.2 at phobos.denx.de X-Virus-Status: Clean From: Aiden Park This is to fix pointer type cast warning in hob command. Signed-off-by: Aiden Park --- cmd/x86/hob.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cmd/x86/hob.c b/cmd/x86/hob.c index 3967a7ca5a..8c2c1ffc63 100644 --- a/cmd/x86/hob.c +++ b/cmd/x86/hob.c @@ -36,14 +36,14 @@ static int do_hob(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) hdr = gd->arch.hob_list; - printf("HOB list address: 0x%08x\n\n", (unsigned int)hdr); + printf("HOB list address: 0x%p\n\n", hdr); - printf("# | Address | Type | Len | "); + printf("# | Address | Type | Len | "); printf("%36s\n", "GUID"); - printf("---|----------|-----------|------|-"); + printf("---|------------------|-----------|------|-"); printf("------------------------------------\n"); while (!end_of_hob(hdr)) { - printf("%02x | %08x | ", i, (unsigned int)hdr); + printf("%02x | %p | ", i, hdr); type = hdr->type; if (type == HOB_TYPE_UNUSED) desc = "*Unused*";