[coreboot-gerrit] New patch to review for coreboot: f3a5098 Fix compilation when coverage debugging is enabled

Stefan Reinauer (stefan.reinauer@coreboot.org) gerrit at coreboot.org
Fri Apr 5 22:52:34 CEST 2013


Stefan Reinauer (stefan.reinauer at coreboot.org) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/3032

-gerrit

commit f3a50986fea88b65334a36d83a1c0b5d93021d46
Author: Stefan Reinauer <reinauer at chromium.org>
Date:   Fri Apr 5 13:49:55 2013 -0700

    Fix compilation when coverage debugging is enabled
    
    With CONFIG_DEBUG_COVERAGE enabled, the build currently fails with
    
    src/lib/gcov-glue.c: In function 'fseek':
    src/lib/gcov-glue.c:87:2: error: format '%d' expects argument of type 'int', but argument 4 has type 'long int' [-Werror=format]
    src/lib/gcov-glue.c:87:2: error: format '%d' expects argument of type 'int', but argument 4 has type 'long int' [-Werror=format]
    
    Change-Id: Iddaa601748c210d9dad06ae9dab2a3deaa635b2c
    Signed-off-by: Stefan Reinauer <reinauer at google.com>
---
 src/lib/gcov-glue.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lib/gcov-glue.c b/src/lib/gcov-glue.c
index 7c069cb..4e2b290 100644
--- a/src/lib/gcov-glue.c
+++ b/src/lib/gcov-glue.c
@@ -84,7 +84,7 @@ static int fseek(FILE *stream, long offset, int whence)
 	 * to a freshly opened file. */
 	gcc_assert (offset == 0 && whence == SEEK_SET);
 #if CONFIG_DEBUG_COVERAGE
-	printk(BIOS_DEBUG, "fseek %s offset=%d whence=%d\n",
+	printk(BIOS_DEBUG, "fseek %s offset=%ld whence=%d\n",
 		stream->filename, offset, whence);
 #endif
 	return 0;



More information about the coreboot-gerrit mailing list