From ea6b8ee026a4c53d9dfb5a42e4d9e485b89018e3 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Mon, 30 Jul 2012 13:40:37 +1000 Subject: lib/tdb: Fix format string errors found by -Werror=format in tdb tests --- lib/tdb/test/run-transaction-expand.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib/tdb/test/run-transaction-expand.c') diff --git a/lib/tdb/test/run-transaction-expand.c b/lib/tdb/test/run-transaction-expand.c index 7f7b3fc129..1271d92b33 100644 --- a/lib/tdb/test/run-transaction-expand.c +++ b/lib/tdb/test/run-transaction-expand.c @@ -80,8 +80,8 @@ int main(int argc, char *argv[]) tdb_ofs_read(tdb, TDB_RECOVERY_HEAD, &off); tdb_read(tdb, off, &rec, sizeof(rec), DOCONV()); - diag("TDB size = %zu, recovery = %u-%u", - (size_t)tdb->map_size, off, off + sizeof(rec) + rec.rec_len); + diag("TDB size = %zu, recovery = %llu-%llu", + (size_t)tdb->map_size, (unsigned long long)off, (unsigned long long)(off + sizeof(rec) + rec.rec_len)); /* We should only be about 5 times larger than largest record. */ ok1(tdb->map_size < 6 * i * getpagesize()); @@ -104,8 +104,8 @@ int main(int argc, char *argv[]) tdb_ofs_read(tdb, TDB_RECOVERY_HEAD, &off); tdb_read(tdb, off, &rec, sizeof(rec), DOCONV()); - diag("TDB size = %zu, recovery = %u-%u", - (size_t)tdb->map_size, off, off + sizeof(rec) + rec.rec_len); + diag("TDB size = %zu, recovery = %llu-%llu", + (size_t)tdb->map_size, (unsigned long long)off, (unsigned long long)(off + sizeof(rec) + rec.rec_len)); /* We should only be about 4 times larger than largest record. */ ok1(tdb->map_size < 5 * i * getpagesize()); -- cgit