diff options
author | Volker Lendecke <vl@samba.org> | 2014-07-30 10:19:58 +0000 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2014-07-31 16:20:53 +0200 |
commit | 85a03c88446500609f6f2e8680bf940a7811e593 (patch) | |
tree | a6779ea7d57eef576d3f222e8563d62265ea424b /lib/util/debug.c | |
parent | 83eac53c03511b8599f26a961f89dbd92425d9ab (diff) | |
download | samba-85a03c88446500609f6f2e8680bf940a7811e593.tar.gz samba-85a03c88446500609f6f2e8680bf940a7811e593.tar.xz samba-85a03c88446500609f6f2e8680bf940a7811e593.zip |
debug: Remove thread-related code from debug.c
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User(master): Volker Lendecke <vl@samba.org>
Autobuild-Date(master): Thu Jul 31 16:20:53 CEST 2014 on sn-devel-104
Diffstat (limited to 'lib/util/debug.c')
-rw-r--r-- | lib/util/debug.c | 54 |
1 files changed, 0 insertions, 54 deletions
diff --git a/lib/util/debug.c b/lib/util/debug.c index 80a3460e7a..77d485f62a 100644 --- a/lib/util/debug.c +++ b/lib/util/debug.c @@ -1063,57 +1063,3 @@ bool dbghdrclass(int level, int cls, const char *location, const char *func) SAFE_FREE(msgbuf); return ret; } - - -/* the registered mutex handlers */ -static struct { - const char *name; - struct debug_ops ops; -} debug_handlers; - -/** - log suspicious usage - print comments and backtrace -*/ -_PUBLIC_ void log_suspicious_usage(const char *from, const char *info) -{ - if (!debug_handlers.ops.log_suspicious_usage) return; - - debug_handlers.ops.log_suspicious_usage(from, info); -} - - -/** - print suspicious usage - print comments and backtrace -*/ -_PUBLIC_ void print_suspicious_usage(const char* from, const char* info) -{ - if (!debug_handlers.ops.print_suspicious_usage) return; - - debug_handlers.ops.print_suspicious_usage(from, info); -} - -_PUBLIC_ uint32_t get_task_id(void) -{ - if (debug_handlers.ops.get_task_id) { - return debug_handlers.ops.get_task_id(); - } - return getpid(); -} - -_PUBLIC_ void log_task_id(void) -{ - if (!debug_handlers.ops.log_task_id) return; - - if (!reopen_logs_internal()) return; - - debug_handlers.ops.log_task_id(state.fd); -} - -/** - register a set of debug handlers. -*/ -_PUBLIC_ void register_debug_handlers(const char *name, struct debug_ops *ops) -{ - debug_handlers.name = name; - debug_handlers.ops = *ops; -} |