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, ", ");
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");