tdb: tdbtool: dump record hash with fixed number of 8 hex digits
authorMichael Adam <obnox@samba.org>
Wed, 12 Feb 2014 10:13:18 +0000 (11:13 +0100)
committerJeremy Allison <jra@samba.org>
Fri, 14 Feb 2014 23:53:25 +0000 (15:53 -0800)
Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
lib/tdb/common/dump.c

index 7193c1e110e7fe1533bdf3abf69484b17757758e..b2879519d1bce56289a5dc5dd5e62865032d37fc 100644 (file)
@@ -40,7 +40,7 @@ static tdb_off_t tdb_dump_record(struct tdb_context *tdb, int hash,
        }
 
        printf(" rec: hash=%d offset=0x%08x next=0x%08x rec_len=%u "
-              "key_len=%u data_len=%u full_hash=0x%x magic=0x%x\n",
+              "key_len=%u data_len=%u full_hash=0x%08x magic=0x%x\n",
               hash, offset, rec.next, rec.rec_len, rec.key_len, rec.data_len,
               rec.full_hash, rec.magic);