X-Git-Url: http://www.privoxy.org/gitweb/?p=privoxy.git;a=blobdiff_plain;f=client-tags.c;h=a8cb69609d078f4db7b28078cb31cc131bea842e;hp=c5aa9552c825ee95f11b80cd16ab69f7a3e46db1;hb=78726fb4b11c8baaa6056e0e83471710b5076737;hpb=3b0f6d2f765d3a48684b563f9830d4af5330d5a0 diff --git a/client-tags.c b/client-tags.c index c5aa9552..a8cb6960 100644 --- 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) { - 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 %ld", 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 > %ld?", 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); - log_error(LOG_LEVEL_CGI, "Next timeout in %d seconds", next_timeout); + log_error(LOG_LEVEL_CGI, "Next timeout in %ld seconds", next_timeout); return next_timeout; @@ -568,7 +568,7 @@ jb_err enable_client_specific_tag(struct client_state *csp, { add_tag_for_client(csp->client_address, tag_name, time_to_live); log_error(LOG_LEVEL_INFO, - "Tag '%s' enabled for client '%s'. TTL: %d.", + "Tag '%s' enabled for client '%s'. TTL: %ld.", tag->name, csp->client_address, time_to_live); }