[lttng-dev] [lttng-tools PATCH 4/4] RFC - NOT FOR MERGE - Add path configuration to debug output

Alexandre Montplaisir alexandre.montplaisir at gmail.com
Mon Dec 5 10:11:53 EST 2011


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 <alexandre.montplaisir at gmail.com>
---
 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);
 }
 
 /*
-- 
1.7.7.3




More information about the lttng-dev mailing list