From: Alexandre Montplaisir Date: Sat, 11 Feb 2012 17:30:47 +0000 (-0500) Subject: Fix format-security warnings when building with trace-sync X-Git-Tag: v1.5-beta1~91 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=c798827d579b1da775fb481f9cb987c02a679db9;p=lttv.git Fix format-security warnings when building with trace-sync Signed-off-by: Alexandre Montplaisir Signed-off-by: Yannick Brosseau --- diff --git a/lttv/lttv/sync/event_analysis_chull.c b/lttv/lttv/sync/event_analysis_chull.c index d36022c9..cc3aad52 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);