r16931@catbus: nickm | 2007-12-06 14:19:58 -0500

Fix warnings in debug messages


svn:r577
This commit is contained in:
Nick Mathewson 2007-12-06 19:20:24 +00:00
parent cd666f8071
commit 77861fa7f1
2 changed files with 3 additions and 3 deletions

View File

@ -719,7 +719,7 @@ event_add(struct event *ev, struct timeval *tv)
event_debug((
"event_add: timeout in %d seconds, call %p",
tv->tv_sec, ev->ev_callback));
(int)tv->tv_sec, ev->ev_callback));
event_queue_insert(base, ev, EVLIST_TIMEOUT);
}
@ -823,7 +823,7 @@ timeout_next(struct event_base *base, struct timeval **tv_p)
assert(tv->tv_sec >= 0);
assert(tv->tv_usec >= 0);
event_debug(("timeout_next: in %d seconds", tv->tv_sec));
event_debug(("timeout_next: in %d seconds", (int)tv->tv_sec));
return (0);
}

2
http.c
View File

@ -2224,7 +2224,7 @@ evhttp_request_set_chunked_cb(struct evhttp_request *req,
const char *
evhttp_request_uri(struct evhttp_request *req) {
if (req->uri == NULL)
event_debug(("%s: request %p has no uri\n", req));
event_debug(("%s: request %p has no uri\n", __func__, req));
return (req->uri);
}