projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add missing fprintf format
[lttng-tools.git]
/
lttng
/
commands
/
add_context.c
diff --git
a/lttng/commands/add_context.c
b/lttng/commands/add_context.c
index a622622f1e0ef736721db9fec1c61d70fb277c55..38d3cc1dc1425050c0f4740482f6a6157e180418 100644
(file)
--- 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;
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");
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, ", ");
len = indent_len;
} else {
len += fprintf(ofp, ", ");
This page took
0.023774 seconds
and
4
git commands to generate.