projects
/
privoxy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
3b0f6d2
)
get_next_tag_timeout_for_client(): Fix format specifiers in log messages
author
Fabian Keil
<fk@fabiankeil.de>
Fri, 11 Sep 2020 12:47:28 +0000
(14:47 +0200)
committer
Fabian Keil
<fk@fabiankeil.de>
Fri, 11 Sep 2020 14:35:40 +0000
(16:35 +0200)
client-tags.c
patch
|
blob
|
history
diff --git
a/client-tags.c
b/client-tags.c
index
c5aa955
..
23eb39f
100644
(file)
--- a/
client-tags.c
+++ b/
client-tags.c
@@
-276,14
+276,14
@@
time_t get_next_tag_timeout_for_client(const char *client_address)
enabled_tags = get_tags_for_client(client_address);
while (enabled_tags != NULL)
{
enabled_tags = get_tags_for_client(client_address);
while (enabled_tags != NULL)
{
- log_error(LOG_LEVEL_CGI, "Evaluating tag '%s' for client %s. End of life %d",
+ log_error(LOG_LEVEL_CGI, "Evaluating tag '%s' for client %s. End of life %
l
d",
enabled_tags->name, client_address, enabled_tags->end_of_life);
if (enabled_tags->end_of_life)
{
time_t time_left = enabled_tags->end_of_life - now;
/* Add a second to make sure the tag will have expired */
time_left++;
enabled_tags->name, client_address, enabled_tags->end_of_life);
if (enabled_tags->end_of_life)
{
time_t time_left = enabled_tags->end_of_life - now;
/* Add a second to make sure the tag will have expired */
time_left++;
- log_error(LOG_LEVEL_CGI, "%
d > %
d?", next_timeout, time_left);
+ log_error(LOG_LEVEL_CGI, "%
ld > %l
d?", next_timeout, time_left);
if (next_timeout == 0 || next_timeout > time_left)
{
next_timeout = time_left;
if (next_timeout == 0 || next_timeout > time_left)
{
next_timeout = time_left;
@@
-294,7
+294,7
@@
time_t get_next_tag_timeout_for_client(const char *client_address)
privoxy_mutex_unlock(&client_tags_mutex);
privoxy_mutex_unlock(&client_tags_mutex);
- log_error(LOG_LEVEL_CGI, "Next timeout in %d seconds", next_timeout);
+ log_error(LOG_LEVEL_CGI, "Next timeout in %
l
d seconds", next_timeout);
return next_timeout;
return next_timeout;