mirror of
https://github.com/samba-team/samba.git
synced 2025-02-28 01:58:17 +03:00
lib/tdb: Fix format string errors found by -Werror=format in tdb tests
This commit is contained in:
parent
17bddd15de
commit
ea6b8ee026
@ -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());
|
||||
|
Loading…
x
Reference in New Issue
Block a user