]> granicus.if.org Git - libevent/commitdiff
fix http.c to compile properly with USE_DEBUG; from Christopher Layne
authorNiels Provos <provos@gmail.com>
Sat, 15 Sep 2007 15:50:11 +0000 (15:50 +0000)
committerNiels Provos <provos@gmail.com>
Sat, 15 Sep 2007 15:50:11 +0000 (15:50 +0000)
svn:r430

ChangeLog
http.c

index a7d8a926b17084e5e8dab0cc9abde805e8322822..76d78bcf09d43882b4dfbd25f7630141ddb6b657 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -11,3 +11,4 @@ Changes in current version:
  o Fix buffer size and string generation in evdns_resolve_reverse_ipv6().
  o Respond to nonstandard DNS queries with "NOTIMPL" rather than by ignoring them.
  o In DNS responses, the CD flag should be preserved, not the TC flag.
+ o Fix http.c to compile properly with USE_DEBUG; from Christopher Layne
diff --git a/http.c b/http.c
index 9b8b5106db79461aa9445a314bd3da2af929d523..65dafbc080723543e30677f24e4368dca8629a1f 100644 (file)
--- a/http.c
+++ b/http.c
@@ -1174,7 +1174,7 @@ evhttp_add_header(struct evkeyvalq *headers,
        if (strchr(value, '\r') != NULL || strchr(value, '\n') != NULL ||
            strchr(key, '\r') != NULL || strchr(key, '\n') != NULL) {
                /* drop illegal headers */
-               event_debug(("%s: dropping illegal header\n"));
+               event_debug(("%s: dropping illegal header\n", __func__));
                return (-1);
        }
 
@@ -1499,7 +1499,7 @@ evhttp_connection_connect(struct evhttp_connection *evcon)
        evcon->fd = bind_socket(evcon->bind_address, 0);
        if (evcon->fd == -1) {
                event_debug(("%s: failed to bind to \"%s\"",
-                       __func__, bind_address));
+                       __func__, evcon->bind_address));
                return (-1);
        }
 
@@ -2439,7 +2439,7 @@ socket_connect(int fd, const char *address, unsigned short port)
 
        if (ai == NULL) {
                event_debug(("%s: make_addrinfo: \"%s:%d\"",
-                       __func__, evcon->address, evcon->port));
+                       __func__, address, port));
                return (-1);
        }