diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2012-03-14 13:37:51 +1030 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2012-03-14 05:09:30 +0100 |
commit | 5ba2e4fc391e3f894b9d939b9ae65f664e32bb0c (patch) | |
tree | 92e02b25990bbd474811a25cdcdaadd611c372af /lib/tdb2/tdb1_check.c | |
parent | ee0d1daa279049a1b38b1ef4b3a1b29b1344b212 (diff) | |
download | samba-5ba2e4fc391e3f894b9d939b9ae65f664e32bb0c.tar.gz samba-5ba2e4fc391e3f894b9d939b9ae65f664e32bb0c.tar.bz2 samba-5ba2e4fc391e3f894b9d939b9ae65f664e32bb0c.zip |
lib/tdb2: fix error string formatting.
This caused a crash on PPC64 when we failed the mmap (found by failtest,
reported by Amitay)
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'lib/tdb2/tdb1_check.c')
-rw-r--r-- | lib/tdb2/tdb1_check.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/tdb2/tdb1_check.c b/lib/tdb2/tdb1_check.c index a8e54b2ee0..68f8f8183c 100644 --- a/lib/tdb2/tdb1_check.c +++ b/lib/tdb2/tdb1_check.c @@ -420,7 +420,8 @@ int tdb1_check(struct tdb_context *tdb, tdb_logerr(tdb, TDB_SUCCESS, TDB_LOG_WARNING, "Dead space at %d-%d (of %u)\n", - off, off + dead, tdb->file->map_size); + off, off + dead, + (unsigned)tdb->file->map_size); rec.rec_len = dead - sizeof(rec); break; case TDB1_RECOVERY_MAGIC: |