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

David Goulet david.goulet at polymtl.ca
Mon Dec 5 11:22:41 EST 2011


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 <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);
>  }
>  
>  /*



More information about the lttng-dev mailing list