From: Michael Adam Date: Wed, 11 Jul 2007 10:08:17 +0000 (+0000) Subject: r23828: Add entry and exit debug statments to tdb_validate X-Git-Tag: samba-misc-tags/initial-v3-2-unstable~751 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b636f8cdad72a9a9bc1d302d8d681dca2da6105a;p=thirdparty%2Fsamba.git r23828: Add entry and exit debug statments to tdb_validate at a lower debug level. Michael --- diff --git a/source/lib/util_tdb.c b/source/lib/util_tdb.c index c567250a9fa..22831d97ace 100644 --- a/source/lib/util_tdb.c +++ b/source/lib/util_tdb.c @@ -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; }