[lttng-dev] [LTTV PATCH] Fix format-security warnings when building with trace-sync
Alexandre Montplaisir
alexandre.montplaisir at gmail.com
Sat Feb 11 12:30:47 EST 2012
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);
--
1.7.9
More information about the lttng-dev
mailing list