From: David Goulet Date: Fri, 22 Jul 2011 20:00:26 +0000 (-0400) Subject: Add missing fprintf format X-Git-Tag: v2.0-pre2~1 X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=commitdiff_plain;h=76e3c5dd48044ac0f117b34489e039feb669e9d7 Add missing fprintf format Signed-off-by: David Goulet --- 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, ", ");