From 3fb8b0d75b2a40a1e81e10b6abe9f63c71f9066c Mon Sep 17 00:00:00 2001 From: Francis Rowe Date: Fri, 21 Nov 2014 02:38:48 +0000 Subject: util/cbfstool/cbfs-mkstage.c: Fix build issue on 32-bit x86 Fixes regression caused by commit 405304ac (cbfstool: Add option to ignore section in add-stage) Change-Id: If9e3eea9ab2c05027f660d0057a635abf981b901 Signed-off-by: Francis Rowe Signed-off-by: Stefan Reinauer Signed-off-by: Patrick Georgi Reviewed-on: http://review.coreboot.org/7545 Reviewed-by: Paul Menzel Tested-by: build bot (Jenkins) Reviewed-by: Furquan Shaikh Reviewed-by: Ronald G. Minnich --- util/cbfstool/cbfs-mkstage.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'util/cbfstool') diff --git a/util/cbfstool/cbfs-mkstage.c b/util/cbfstool/cbfs-mkstage.c index 845933487f..135a6e7714 100644 --- a/util/cbfstool/cbfs-mkstage.c +++ b/util/cbfstool/cbfs-mkstage.c @@ -20,6 +20,7 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA, 02110-1301 USA */ +#include #include #include #include @@ -42,7 +43,7 @@ static int is_phdr_ignored(Elf64_Phdr *phdr, Elf64_Shdr *shdr) /* Return true only if section occupies whole of segment. */ if ((sh_start == ph_start) && (sh_end == ph_end)) { - DEBUG("Ignoring program segment at %p\n", (void *)ph_start); + DEBUG("Ignoring program segment at 0x%" PRIx64 "\n", ph_start); return 1; } -- cgit v1.2.3