From 76e3c5dd48044ac0f117b34489e039feb669e9d7 Mon Sep 17 00:00:00 2001 From: David Goulet Date: Fri, 22 Jul 2011 16:00:26 -0400 Subject: [PATCH 1/1] Add missing fprintf format Signed-off-by: David Goulet --- lttng/commands/add_context.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lttng/commands/add_context.c b/lttng/commands/add_context.c index a622622f1..38d3cc1dc 100644 --- a/lttng/commands/add_context.c +++ b/lttng/commands/add_context.c @@ -267,14 +267,14 @@ static void print_ctx_type(FILE *ofp) int indent_len = strlen(indent); int len, i = 0; - fprintf(ofp, indent); + fprintf(ofp, "%s", indent); len = indent_len; while (ctx_opts[i].symbol != NULL) { if (len > indent_len) { if (len + strlen(ctx_opts[i].symbol) + 2 >= PRINT_LINE_LEN) { fprintf(ofp, ",\n"); - fprintf(ofp, indent); + fprintf(ofp, "%s", indent); len = indent_len; } else { len += fprintf(ofp, ", "); -- 2.34.1