diff options
author | Niels Provos <provos@gmail.com> | 2008-06-30 01:01:28 +0000 |
---|---|---|
committer | Niels Provos <provos@gmail.com> | 2008-06-30 01:01:28 +0000 |
commit | 0690f0f5554233f278fb26835b3fa7f9dd583a07 (patch) | |
tree | b4753399144bfea6b7c7019a73a37981d372e96f | |
parent | 130a8a130868443aa71f601074c4b7b90b3681b6 (diff) | |
download | libevent-0690f0f5554233f278fb26835b3fa7f9dd583a07.tar.gz |
fix warnings with USE_DEBUG
svn:r891
-rw-r--r-- | event.c | 4 | ||||
-rw-r--r-- | kqueue.c | 6 |
2 files changed, 5 insertions, 5 deletions
@@ -735,7 +735,7 @@ event_add(struct event *ev, const struct timeval *tv) evutil_timeradd(&now, tv, &ev->ev_timeout); event_debug(( - "event_add: timeout in %d seconds, call %p", + "event_add: timeout in %ld seconds, call %p", tv->tv_sec, ev->ev_callback)); event_queue_insert(base, ev, EVLIST_TIMEOUT); @@ -844,7 +844,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 %ld seconds", tv->tv_sec)); return (0); } @@ -193,9 +193,9 @@ kq_insert(struct kqop *kqop, struct kevent *kev) memcpy(&kqop->changes[kqop->nchanges++], kev, sizeof(struct kevent)); event_debug(("%s: fd %d %s%s", - __func__, kev->ident, - kev->filter == EVFILT_READ ? "EVFILT_READ" : "EVFILT_WRITE", - kev->flags == EV_DELETE ? " (del)" : "")); + __func__, (int)kev->ident, + kev->filter == EVFILT_READ ? "EVFILT_READ" : "EVFILT_WRITE", + kev->flags == EV_DELETE ? " (del)" : "")); return (0); } |