[lttng-dev] [LTTV PATCH] Fix format-security warnings when building with trace-sync
Yannick Brosseau
yannick.brosseau at gmail.com
Tue Mar 6 15:47:03 EST 2012
Merged, thanks,
On 2012-02-11 12:30, 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