[coreboot-gerrit] Patch set updated for coreboot: 42f93fb util/cbfstool/cbfs-mkstage.c: Fix build issue on 32-bit x86

Francis Rowe (info@gluglug.org.uk) gerrit at coreboot.org
Fri Nov 21 15:09:46 CET 2014


Francis Rowe (info at gluglug.org.uk) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/7545

-gerrit

commit 42f93fb770d495a56b12426fa02363d443183762
Author: Francis Rowe <info at gluglug.org.uk>
Date:   Fri Nov 21 02:38:48 2014 +0000

    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 <info at gluglug.org.uk>
    Signed-off-by: Stefan Reinauer <stefan.reinauer at coreboot.org>
    Signed-off-by: Patrick Georgi <pgeorgi at google.com>
---
 util/cbfstool/cbfs-mkstage.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/util/cbfstool/cbfs-mkstage.c b/util/cbfstool/cbfs-mkstage.c
index 8459334..bb9200d 100644
--- a/util/cbfstool/cbfs-mkstage.c
+++ b/util/cbfstool/cbfs-mkstage.c
@@ -23,6 +23,7 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
+#include <inttypes.h>
 
 #include "elfparsing.h"
 #include "common.h"
@@ -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;
 	}
 



More information about the coreboot-gerrit mailing list