summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNiels Provos <provos@gmail.com>2008-06-30 01:01:28 +0000
committerNiels Provos <provos@gmail.com>2008-06-30 01:01:28 +0000
commit0690f0f5554233f278fb26835b3fa7f9dd583a07 (patch)
treeb4753399144bfea6b7c7019a73a37981d372e96f
parent130a8a130868443aa71f601074c4b7b90b3681b6 (diff)
downloadlibevent-0690f0f5554233f278fb26835b3fa7f9dd583a07.tar.gz
fix warnings with USE_DEBUG
svn:r891
-rw-r--r--event.c4
-rw-r--r--kqueue.c6
2 files changed, 5 insertions, 5 deletions
diff --git a/event.c b/event.c
index 438f3f28..8e94003d 100644
--- a/event.c
+++ b/event.c
@@ -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);
}
diff --git a/kqueue.c b/kqueue.c
index 462d90b9..2dea1fba 100644
--- a/kqueue.c
+++ b/kqueue.c
@@ -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);
}