about summary refs log tree commit diff homepage
diff options
context:
space:
mode:
authorCristian Cadar <c.cadar@imperial.ac.uk>2020-03-06 21:07:11 +0000
committerMartinNowack <2443641+MartinNowack@users.noreply.github.com>2020-03-17 14:32:35 +0000
commit43cded9e512cefcedcb9a759ca3582624ec659e3 (patch)
treed567e7404de807e0fca43e06fc5055245f469242
parentfe2f286b4d2406b1731e49e2653d0a3cd078ab41 (diff)
downloadklee-43cded9e512cefcedcb9a759ca3582624ec659e3.tar.gz
Fixed compiler warning when printing variable of type off_t
-rw-r--r--tools/gen-bout/gen-bout.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/gen-bout/gen-bout.cpp b/tools/gen-bout/gen-bout.cpp
index 1fe5e698..a415d400 100644
--- a/tools/gen-bout/gen-bout.cpp
+++ b/tools/gen-bout/gen-bout.cpp
@@ -215,7 +215,7 @@ int main(int argc, char *argv[]) {
     char *buf1 = (char *)malloc(1024);
     char *buf2 = (char *)malloc(1024);
     snprintf(buf1, 1024, "-sym-stdin");
-    snprintf(buf2, 1024, "%ld", file_stat.st_size);
+    snprintf(buf2, 1024, "%lld", (long long int) file_stat.st_size);
     argv_copy[argv_copy_idx++] = buf1;
     argv_copy[argv_copy_idx++] = buf2;
   }