From 84463efb9448425c9c498425a4fc80b53ed5db73 Mon Sep 17 00:00:00 2001 From: Stefan Reinauer Date: Fri, 5 Apr 2013 13:49:55 -0700 Subject: 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 Reviewed-on: http://review.coreboot.org/3032 Reviewed-by: Paul Menzel Tested-by: build bot (Jenkins) Reviewed-by: Ronald G. Minnich --- src/lib/gcov-glue.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lib') diff --git a/src/lib/gcov-glue.c b/src/lib/gcov-glue.c index 7c069cbbca..4e2b2908b3 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; -- cgit v1.2.3