[lttng-dev] [LTTV PATCH] Fix format-security warnings when building with trace-sync

Alexandre Montplaisir alexandre.montplaisir at gmail.com
Sun Feb 26 13:02:53 EST 2012


Bump, I think this fell through the cracks...

The daily builds fail without it.


On 12-02-11 12:30 PM, Alexandre Montplaisir wrote:
> Signed-off-by: Alexandre Montplaisir <alexandre.montplaisir at gmail.com>
> ---
>  lttv/lttv/sync/event_analysis_chull.c |    4 ++--
>  1 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/lttv/lttv/sync/event_analysis_chull.c b/lttv/lttv/sync/event_analysis_chull.c
> index d36022c..cc3aad5 100644
> --- a/lttv/lttv/sync/event_analysis_chull.c
> +++ b/lttv/lttv/sync/event_analysis_chull.c
> @@ -1677,14 +1677,14 @@ static AllFactors* finalizeAnalysisCHullLP(SyncState* const syncState)
>  
>  				if ((fp= fopen(fileName, "w")) == NULL)
>  				{
> -					g_error(strerror(errno));
> +					g_error("%s", strerror(errno));
>  				}
>  				fprintf(fp, "#%-24s %-25s %-25s %-25s\n", "x", "middle", "min", "max");
>  
>  				retval= chdir(cwd);
>  				if (retval == -1)
>  				{
> -					g_error(strerror(errno));
> +					g_error("%s", strerror(errno));
>  				}
>  				free(cwd);
>  




More information about the lttng-dev mailing list