X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=lttng%2Fcommands%2Fadd_context.c;h=38d3cc1dc1425050c0f4740482f6a6157e180418;hb=de235b67bebde4ba79bf2e22c129f01fe264910f;hp=cb0c08741c7113fd21734b7d065fca518e147b7f;hpb=b13d56d78992e27e684fec7aef527670fc238e9b;p=lttng-tools.git diff --git a/lttng/commands/add_context.c b/lttng/commands/add_context.c index cb0c08741..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, ", "); @@ -313,7 +313,7 @@ static void usage(FILE *ofp) fprintf(ofp, "\n"); fprintf(ofp, "Example:\n"); fprintf(ofp, "This command will add the context information 'prio' and two perf\n" - "counters: hardware branch misses and cache-misses, to all events\n" + "counters: hardware branch misses and cache misses, to all events\n" "in the trace data output:\n"); fprintf(ofp, "# lttng add-context -k -t prio -t perf:branch-misses -t perf:cache-misses\n"); fprintf(ofp, "\n");