[pulseaudio-discuss] [PATCH] conf-parser: Add debug print of parsed files

Tanu Kaskinen tanu.kaskinen at linux.intel.com
Fri Aug 22 03:18:41 PDT 2014


On Fri, 2014-08-22 at 11:51 +0200, David Henningsson wrote:
> This is useful for debugging.
> 
> Signed-off-by: David Henningsson <david.henningsson at canonical.com>
> ---
>  src/pulsecore/conf-parser.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/src/pulsecore/conf-parser.c b/src/pulsecore/conf-parser.c
> index 200252b..1683d46 100644
> --- a/src/pulsecore/conf-parser.c
> +++ b/src/pulsecore/conf-parser.c
> @@ -175,6 +175,7 @@ int pa_config_parse(const char *filename, FILE *f, const pa_config_item *t, pa_p
>          pa_log_warn("Failed to open configuration file '%s': %s", filename, pa_cstrerror(errno));
>          goto finish;
>      }
> +    pa_log_debug("Parsing configuration file '%s'", filename);
>  
>      state.filename = filename;
>      state.item_table = t;

Looks good to me.

-- 
Tanu



More information about the pulseaudio-discuss mailing list