Commit 2427a8d5 authored by Daniel Salzman's avatar Daniel Salzman

tests: fix off_t print warning on BSD

parent 7eaf8463
...@@ -64,7 +64,8 @@ static void test_fillup(journal_t *journal, size_t fsize, unsigned iter) ...@@ -64,7 +64,8 @@ static void test_fillup(journal_t *journal, size_t fsize, unsigned iter)
fstat(journal->fd, &st); fstat(journal->fd, &st);
ok(st.st_size < fsize + large_entry_len, "journal: fillup / size check #%u", iter); ok(st.st_size < fsize + large_entry_len, "journal: fillup / size check #%u", iter);
if (st.st_size > fsize + large_entry_len) { if (st.st_size > fsize + large_entry_len) {
diag("journal: fillup / size check #%u fsize(%zu) > max(%zu)", iter, st.st_size, fsize + large_entry_len); diag("journal: fillup / size check #%u fsize(%zu) > max(%zu)",
iter, (size_t)st.st_size, fsize + large_entry_len);
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment