From patchwork Wed Oct 15 10:38:36 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 399933 X-Patchwork-Delegate: trini@ti.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 A3C4C140145 for ; Wed, 15 Oct 2014 21:39:51 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id A98D0A783B; Wed, 15 Oct 2014 12:39:39 +0200 (CEST) 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 PNGwbvpaNkV1; Wed, 15 Oct 2014 12:39:39 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 16E2FA7854; Wed, 15 Oct 2014 12:39:23 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 17374A7804 for ; Wed, 15 Oct 2014 12:39:05 +0200 (CEST) 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 A1XhSNr9K6wG for ; Wed, 15 Oct 2014 12:39:05 +0200 (CEST) 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-yh0-f74.google.com (mail-yh0-f74.google.com [209.85.213.74]) by theia.denx.de (Postfix) with ESMTPS id 3F0EAA7802 for ; Wed, 15 Oct 2014 12:39:00 +0200 (CEST) Received: by mail-yh0-f74.google.com with SMTP id f73so69648yha.1 for ; Wed, 15 Oct 2014 03:38:59 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=OrR2Sa2c925S9FTGbmktafKSgaOzoLNuJUEzA/HhkQA=; b=eMiLiHOlK60KF+udHuu+M6sIt8OQUatbC3M3/225D3gQkopBS3jFRVSrNLWTt5SOkd LhS0+/DNd6GUnNROtfOHxgXtcoQ6lR5MbYBwT/IoWpg6Sg8kGdJHU4bUiEaSDdS3bps5 oXoxFD4F3w5qRpZVLpYeedZvyMkC8ToEySFD8l8Rh/LLSBfx16gvHhIT11Ebl1H55TiD SXk80vqi9VZgN7fKhm1Vx3+r9PFSXFW4oT1ijdSRC05Qep9URZfn57BiJ+ST/Cb+h+Z7 6EgawNkrgSpmiaxd7c7w3U/VoiNtMOxihRARYzQ3LOke+eBi4D8C/S+UtTNywaydTW1t cQQw== X-Gm-Message-State: ALoCoQl78cFDSqsQypXbsCxNOPmJb24Y6Ms0pmPZu4Z49zqGOrpuN5pc0F94qFTBIbSRXrgo9/Gz X-Received: by 10.236.2.34 with SMTP id 22mr7559682yhe.22.1413369539468; Wed, 15 Oct 2014 03:38:59 -0700 (PDT) Received: from corpmail-nozzle1-2.hot.corp.google.com ([100.108.1.103]) by gmr-mx.google.com with ESMTPS id t28si948654yhb.4.2014.10.15.03.38.59 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 15 Oct 2014 03:38:59 -0700 (PDT) Received: from kaki.bld.corp.google.com ([172.29.216.32]) by corpmail-nozzle1-2.hot.corp.google.com with ESMTP id NoU3N1tL.1; Wed, 15 Oct 2014 03:38:59 -0700 Received: by kaki.bld.corp.google.com (Postfix, from userid 121222) id A27EB221207; Wed, 15 Oct 2014 04:38:58 -0600 (MDT) From: Simon Glass To: U-Boot Mailing List Date: Wed, 15 Oct 2014 04:38:36 -0600 Message-Id: <1413369519-11677-8-git-send-email-sjg@chromium.org> X-Mailer: git-send-email 2.1.0.rc2.206.gedb03e5 In-Reply-To: <1413369519-11677-1-git-send-email-sjg@chromium.org> References: <1413369519-11677-1-git-send-email-sjg@chromium.org> Cc: Graeme Russ Subject: [U-Boot] [PATCH 07/10] x86: Use correct printf() format string for uintptr_t X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.13 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de Use the inttypes header file to provide this. Signed-off-by: Simon Glass --- arch/x86/lib/relocate.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/x86/lib/relocate.c b/arch/x86/lib/relocate.c index 526daaf..faca38f 100644 --- a/arch/x86/lib/relocate.c +++ b/arch/x86/lib/relocate.c @@ -16,6 +16,7 @@ */ #include +#include #include #include #include @@ -94,7 +95,7 @@ int do_elf_reloc_fixups(void) *offset_ptr_ram += gd->reloc_off; } else { debug(" %p: rom reloc %x, ram %p, value %x," - " limit %lx\n", re_src, + " limit %" PRIXPTR "\n", re_src, re_src->r_offset, offset_ptr_ram, *offset_ptr_ram, CONFIG_SYS_TEXT_BASE + size);