chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
bus-proxy: drop one wrong assert()
[elogind.git]
/
src
/
readahead
/
readahead-common.c
diff --git
a/src/readahead/readahead-common.c
b/src/readahead/readahead-common.c
index eda99e8171152f4a2ccc3bf03d92809aa67ddf08..3ca48a7257b652f0391cdfa0150c27bdc1d1b7bc 100644
(file)
--- 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) {
}
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;
}
return 0;
}