mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-04-17 20:45:40 +00:00
BUG/MINOR: sample: fix the closing bracket and LF in the debug converter
The closing bracket was emitted for the "debug" converter even when the opening one was not sent, and the new line was not always emitted. Let's fix this. This is harmless since this converter is not built by default.
This commit is contained in:
parent
62b5913380
commit
5060326798
@ -1463,7 +1463,7 @@ static int sample_conv_debug(const struct arg *arg_p, struct sample *smp, void *
|
||||
|
||||
else {
|
||||
/* Display the displayable chars*. */
|
||||
fprintf(stderr, "<");
|
||||
fputc('<', stderr);
|
||||
for (i = 0; i < tmp.data.u.str.data; i++) {
|
||||
if (isprint(tmp.data.u.str.area[i]))
|
||||
fputc(tmp.data.u.str.area[i],
|
||||
@ -1471,9 +1471,10 @@ static int sample_conv_debug(const struct arg *arg_p, struct sample *smp, void *
|
||||
else
|
||||
fputc('.', stderr);
|
||||
}
|
||||
fputc('>', stderr);
|
||||
}
|
||||
fprintf(stderr, ">\n");
|
||||
}
|
||||
fputc('\n', stderr);
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user