mirror of
https://github.com/libevent/libevent.git
synced 2025-01-09 00:56:20 +08:00
r16931@catbus: nickm | 2007-12-06 14:19:58 -0500
Fix warnings in debug messages svn:r577
This commit is contained in:
parent
cd666f8071
commit
77861fa7f1
4
event.c
4
event.c
@ -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
2
http.c
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user