projects
/
privoxy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
44d2442
)
handle_established_connection(): Fix format specifiers in log messages
author
Fabian Keil
<fk@fabiankeil.de>
Fri, 11 Sep 2020 11:57:02 +0000
(13:57 +0200)
committer
Fabian Keil
<fk@fabiankeil.de>
Fri, 11 Sep 2020 14:35:40 +0000
(16:35 +0200)
jcc.c
patch
|
blob
|
history
diff --git
a/jcc.c
b/jcc.c
index
b53aa31
..
e21165b
100644
(file)
--- a/
jcc.c
+++ b/
jcc.c
@@
-2676,14
+2676,14
@@
static void handle_established_connection(struct client_state *csp)
{
log_error(LOG_LEVEL_CONNECT,
"Done reading from server. Content length: %llu as expected. "
{
log_error(LOG_LEVEL_CONNECT,
"Done reading from server. Content length: %llu as expected. "
- "Bytes most recently read: %d.",
+ "Bytes most recently read: %
l
d.",
byte_count, len);
}
else
{
log_error(LOG_LEVEL_CONNECT,
"Done reading from server. Expected content length: %llu. "
byte_count, len);
}
else
{
log_error(LOG_LEVEL_CONNECT,
"Done reading from server. Expected content length: %llu. "
- "Actual content length: %llu. Bytes most recently read: %d.",
+ "Actual content length: %llu. Bytes most recently read: %
l
d.",
csp->expected_content_length, byte_count, len);
}
len = 0;
csp->expected_content_length, byte_count, len);
}
len = 0;
@@
-2846,7
+2846,7
@@
static void handle_established_connection(struct client_state *csp)
csp->expected_client_content_length -= (unsigned)len;
log_error(LOG_LEVEL_CONNECT,
"Expected client content length set to %llu "
csp->expected_client_content_length -= (unsigned)len;
log_error(LOG_LEVEL_CONNECT,
"Expected client content length set to %llu "
- "after reading %d bytes.",
+ "after reading %
l
d bytes.",
csp->expected_client_content_length, len);
if (csp->expected_client_content_length == 0)
{
csp->expected_client_content_length, len);
if (csp->expected_client_content_length == 0)
{
@@
-3320,7
+3320,7
@@
static void handle_established_connection(struct client_state *csp)
*/
log_error(LOG_LEVEL_CONNECT,
"Continuing buffering server headers from socket %d. "
*/
log_error(LOG_LEVEL_CONNECT,
"Continuing buffering server headers from socket %d. "
- "Bytes most recently read: %d.", csp->cfd, len);
+ "Bytes most recently read: %
l
d.", csp->cfd, len);
continue;
}
}
continue;
}
}