]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
r2131: Fixup format string. The magic value format specifier was missing, so
authorJim McDonough <jmcd@samba.org>
Tue, 31 Aug 2004 12:06:37 +0000 (12:06 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 15:52:32 +0000 (10:52 -0500)
the logged offset was really the magic value, and the true offset was
never displayed.
(This used to be commit 30da4e777191c557226d5615cee5a9e28b198a8b)

source3/tdb/tdb.c

index 9a059d459ef2b7363c19440cb35507e4629115a7..ac159863bdc50d4251f4e9454ff6d3db7f5ae802 100644 (file)
@@ -476,7 +476,7 @@ static int rec_free_read(TDB_CONTEXT *tdb, tdb_off off, struct list_struct *rec)
        if (rec->magic == TDB_MAGIC) {
                /* this happens when a app is showdown while deleting a record - we should
                   not completely fail when this happens */
-               TDB_LOG((tdb, 0,"rec_free_read non-free magic at offset=%d - fixing\n", 
+               TDB_LOG((tdb, 0,"rec_free_read non-free magic 0x%x at offset=%d - fixing\n", 
                         rec->magic, off));
                rec->magic = TDB_FREE_MAGIC;
                if (tdb_write(tdb, off, rec, sizeof(*rec)) == -1)