Because argument parsing can override the stuff setup by setup_consumerd_path.
Mathieu * David Goulet ([email protected]) wrote: > This function is called before arguments parsing hence no debug possible... I > don't think it's the best place for it though!.. > > Mathieu, any reasons it's before the argument parsing and the daemon call? > > Thanks > David > > On 11-12-05 10:11 AM, Alexandre Montplaisir wrote: > > It would be nice to print the current configuration of paths/libdirs > > at this point. However the DBG() macro does not seem to work here > > (nothing is printed). Any ideas why? > > > > Signed-off-by: Alexandre Montplaisir <[email protected]> > > --- > > lttng-sessiond/main.c | 6 ++++++ > > 1 files changed, 6 insertions(+), 0 deletions(-) > > > > diff --git a/lttng-sessiond/main.c b/lttng-sessiond/main.c > > index ac03e34..8e2cb06 100644 > > --- a/lttng-sessiond/main.c > > +++ b/lttng-sessiond/main.c > > @@ -228,6 +228,12 @@ void setup_consumerd_path(void) > > if (libdir) { > > consumerd64_libdir = libdir; > > } > > + > > + DBG("Using the following directories for the consumer daemon:"); > > + DBG("consumerd32_path: %s", consumerd32_path); > > + DBG("consumerd32_libdir: %s", consumerd32_libdir); > > + DBG("consumerd64_path: %s", consumerd64_path); > > + DBG("consumerd64_libdir: %s", consumerd64_libdir); > > } > > > > /* -- Mathieu Desnoyers Operating System Efficiency R&D Consultant EfficiOS Inc. http://www.efficios.com _______________________________________________ lttng-dev mailing list [email protected] http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
