aboutsummaryrefslogtreecommitdiff
path: root/src/lib/gcov-glue.c
diff options
context:
space:
mode:
authorStefan Reinauer <reinauer@chromium.org>2013-04-05 13:49:55 -0700
committerRonald G. Minnich <rminnich@gmail.com>2013-04-08 21:35:26 +0200
commit84463efb9448425c9c498425a4fc80b53ed5db73 (patch)
tree6ccc0a6d7e5d9fef4dad7334be446c93fab9134a /src/lib/gcov-glue.c
parent9e8af58263b7c84ee276354b97c19ad31992c8e9 (diff)
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@google.com> Reviewed-on: http://review.coreboot.org/3032 Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Tested-by: build bot (Jenkins) Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
Diffstat (limited to 'src/lib/gcov-glue.c')
-rw-r--r--src/lib/gcov-glue.c2
1 files changed, 1 insertions, 1 deletions
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;