r23828: Add entry and exit debug statments to tdb_validate
authorMichael Adam <obnox@samba.org>
Wed, 11 Jul 2007 10:08:17 +0000 (10:08 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:28:31 +0000 (12:28 -0500)
at a lower debug level.

Michael
(This used to be commit b636f8cdad72a9a9bc1d302d8d681dca2da6105a)

source3/lib/util_tdb.c

index c567250a9fa91f2aada5644d1d9c222d81374721..22831d97acefbf09fa50a21461b8159393f87b0a 100644 (file)
@@ -1051,6 +1051,8 @@ int tdb_validate(const char *tdb_path, tdb_validate_data_func validate_fn)
        int wait_pid = 0;
        int ret = -1;
 
+       DEBUG(5, ("tdb_validate called for tdb '%s'\n", tdb_path));
+
        /* fork and let the child do the validation.
         * benefit: no need to twist signal handlers and panic functions.
         * just let the child panic. we catch the signal. */
@@ -1112,5 +1114,8 @@ int tdb_validate(const char *tdb_path, tdb_validate_data_func validate_fn)
                ret = WSTOPSIG(child_status);
        }
 
+       DEBUG(5, ("tdb_validate returning code '%d' for tdb '%s'\n", ret,
+                 tdb_path));
+
        return ret;
 }