git.samba.org
/
nivanova
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
851b01f
)
s3:lib: setup talloc log and abort functions
author
Stefan Metzmacher
<metze@samba.org>
Mon, 3 Aug 2009 09:30:44 +0000
(11:30 +0200)
committer
Andrew Tridgell
<tridge@samba.org>
Mon, 24 Aug 2009 06:30:00 +0000
(16:30 +1000)
metze
source3/lib/popt_common.c
patch
|
blob
|
history
diff --git
a/source3/lib/popt_common.c
b/source3/lib/popt_common.c
index e14477c9799b31c036ec4f81971fd9a9972d6f4a..342309d1a750dadb22828b33dac63f6f2b61c92b 100644
(file)
--- a/
source3/lib/popt_common.c
+++ b/
source3/lib/popt_common.c
@@
-59,6
+59,11
@@
static void set_logfile(poptContext con, const char * arg)
static bool PrintSambaVersionString;
+static void popt_s3_talloc_log_fn(const char *message)
+{
+ DEBUG(0,("%s", message));
+}
+
static void popt_common_callback(poptContext con,
enum poptCallbackReason reason,
const struct poptOption *opt,
@@
-67,6
+72,8
@@
static void popt_common_callback(poptContext con,
if (reason == POPT_CALLBACK_REASON_PRE) {
set_logfile(con, get_dyn_LOGFILEBASE());
+ talloc_set_log_fn(popt_s3_talloc_log_fn);
+ talloc_set_abort_fn(smb_panic);
return;
}