summaryrefslogtreecommitdiff
path: root/lib/tdb
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2012-07-30 13:40:37 +1000
committerAndrew Bartlett <abartlet@samba.org>2012-07-30 14:25:10 +1000
commitea6b8ee026a4c53d9dfb5a42e4d9e485b89018e3 (patch)
tree27d09a5ff5f0738781a3081ef794db92adaaa10e /lib/tdb
parent17bddd15de8420629b91f02869fa99880cd80bca (diff)
downloadsamba-ea6b8ee026a4c53d9dfb5a42e4d9e485b89018e3.tar.gz
samba-ea6b8ee026a4c53d9dfb5a42e4d9e485b89018e3.tar.bz2
samba-ea6b8ee026a4c53d9dfb5a42e4d9e485b89018e3.zip
lib/tdb: Fix format string errors found by -Werror=format in tdb tests
Diffstat (limited to 'lib/tdb')
-rw-r--r--lib/tdb/test/run-transaction-expand.c8
1 files changed, 4 insertions, 4 deletions
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());