summaryrefslogtreecommitdiff
path: root/src/readahead
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2014-06-22 13:21:47 -0400
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2014-06-22 15:30:19 -0400
commitbfff8f072d4ddbf0410aae80c62cd6ee5ebc0701 (patch)
treea966eff27e6eeefc3fefe9bbdcb3517a68f17bb8 /src/readahead
parent68328ed63ce3a938679caf41db64e068234a0ca8 (diff)
readahead: avoid gcc warning about format
src/readahead/readahead-common.c:55:17: warning: format ‘%zu’ expects argument of type ‘size_t’, but argument 7 has type ‘__off64_t’ [-Wformat=] log_debug("Not preloading file %s with size out of bounds %zu", fn, st->st_size); ^
Diffstat (limited to 'src/readahead')
-rw-r--r--src/readahead/readahead-common.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/readahead/readahead-common.c b/src/readahead/readahead-common.c
index eda99e8171..3ca48a7257 100644
--- a/src/readahead/readahead-common.c
+++ b/src/readahead/readahead-common.c
@@ -52,7 +52,9 @@ int file_verify(int fd, const char *fn, off_t file_size_max, struct stat *st) {
}
if (st->st_size <= 0 || st->st_size > file_size_max) {
- log_debug("Not preloading file %s with size out of bounds %zu", fn, st->st_size);
+ assert_cc(sizeof(st->st_size) == 8);
+ log_debug("Not preloading file %s with size out of bounds %"PRIu64,
+ fn, st->st_size);
return 0;
}