summaryrefslogtreecommitdiff
path: root/server/util
diff options
context:
space:
mode:
authorSimo Sorce <ssorce@redhat.com>2009-07-13 18:07:03 -0400
committerSimo Sorce <ssorce@redhat.com>2009-07-20 10:58:05 -0400
commitd7114d0651c679fb3a9095997117630b5aee9777 (patch)
tree8eff3e35dea9bc3bbe27564d69157e12bfc7baa8 /server/util
parent49d051dcce7fbc01111cf0eae7c1f45600cff516 (diff)
downloadsssd-d7114d0651c679fb3a9095997117630b5aee9777.tar.gz
sssd-d7114d0651c679fb3a9095997117630b5aee9777.tar.bz2
sssd-d7114d0651c679fb3a9095997117630b5aee9777.zip
Instrument memberof for debugging
Fix ldb debug to avoid printing the debug function name, it's useless.
Diffstat (limited to 'server/util')
-rw-r--r--server/util/debug.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/server/util/debug.c b/server/util/debug.c
index d6a98e29..24dcdb1d 100644
--- a/server/util/debug.c
+++ b/server/util/debug.c
@@ -57,6 +57,8 @@ void ldb_debug_messages(void *context, enum ldb_debug_level level,
return;
}
- DEBUG(loglevel, (message));
+ if (loglevel <= debug_level) {
+ debug_fn("[%s] [ldb] (%d): %s\n", debug_prg_name, loglevel, message);
+ }
free(message);
}