]> granicus.if.org Git - libevent/commitdiff
Fix a couple of event_debug calls.
authorNick Mathewson <nickm@torproject.org>
Sat, 14 Nov 2009 21:54:30 +0000 (21:54 +0000)
committerNick Mathewson <nickm@torproject.org>
Sat, 14 Nov 2009 21:54:30 +0000 (21:54 +0000)
svn:r1527

http.c
test/regress_util.c

diff --git a/http.c b/http.c
index 2d869e5fcd2ff8da90fca933ef4a2332c41b7a14..ae12c923b56858668ce27becafe8580ba524b8f8 100644 (file)
--- a/http.c
+++ b/http.c
@@ -1642,8 +1642,8 @@ evhttp_get_body_length(struct evhttp_request *req)
                req->ntoread = ntoread;
        }
 
-       event_debug(("%s: bytes to read: %d (in buffer %ld)\n",
-               __func__, req->ntoread,
+       event_debug(("%s: bytes to read: %ld (in buffer %ld)\n",
+               __func__, (long)req->ntoread,
                evbuffer_get_length(bufferevent_get_input(req->evcon->bufev))));
 
        return (0);
index 092058e6a244a3a414b2f3f2f2de645dbc2f0d08..49cefa029ba3890a4c99a2562a2da4f464fc5db2 100644 (file)
@@ -382,7 +382,7 @@ test_evutil_log(void *ptr)
        tt_int_op(exited,==,0);
        RESET();
 
-       event_debug("A millisecond passed!  We should log that!");
+       event_debug(("A millisecond passed!  We should log that!"));
 #ifdef USE_DEBUG
        LOGEQ(_EVENT_LOG_DEBUG, "A millisecond passed!  We should log that!");
 #else