diff options
author | Stefan Metzmacher <metze@samba.org> | 2009-07-30 08:37:01 +0200 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2009-08-24 16:29:59 +1000 |
commit | 251b03eee626c10b294eee4a45a1dcc82a4fd1d9 (patch) | |
tree | 4e7735b6071c7fb4ecce45179bf420db2aacb31d /source4/lib/cmdline | |
parent | 5cefde407559497c2ff53d0caa9d22d4af063a68 (diff) | |
download | samba-251b03eee626c10b294eee4a45a1dcc82a4fd1d9.tar.gz samba-251b03eee626c10b294eee4a45a1dcc82a4fd1d9.tar.xz samba-251b03eee626c10b294eee4a45a1dcc82a4fd1d9.zip |
s4:cmdline: setup talloc log and abort functions
metze
Diffstat (limited to 'source4/lib/cmdline')
-rw-r--r-- | source4/lib/cmdline/popt_common.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source4/lib/cmdline/popt_common.c b/source4/lib/cmdline/popt_common.c index 712d99996c..0273c4fe1c 100644 --- a/source4/lib/cmdline/popt_common.c +++ b/source4/lib/cmdline/popt_common.c @@ -53,6 +53,11 @@ static void popt_version_callback(poptContext con, } } +static void popt_s4_talloc_log_fn(const char *message) +{ + DEBUG(0,("%s", message)); +} + static void popt_samba_callback(poptContext con, enum poptCallbackReason reason, const struct poptOption *opt, @@ -86,6 +91,8 @@ static void popt_samba_callback(poptContext con, /* and logging */ setup_logging(pname, DEBUG_STDOUT); + talloc_set_log_fn(popt_s4_talloc_log_fn); + talloc_set_abort_fn(smb_panic); return; } |