From 43cded9e512cefcedcb9a759ca3582624ec659e3 Mon Sep 17 00:00:00 2001 From: Cristian Cadar Date: Fri, 6 Mar 2020 21:07:11 +0000 Subject: Fixed compiler warning when printing variable of type off_t --- tools/gen-bout/gen-bout.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit 1.4.1