From b835ee085f537aa6a45df865930626688e984009 Mon Sep 17 00:00:00 2001 From: Niels Provos Date: Sat, 15 Sep 2007 15:50:11 +0000 Subject: [PATCH] fix http.c to compile properly with USE_DEBUG; from Christopher Layne svn:r430 --- ChangeLog | 1 + http.c | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index a7d8a926..76d78bcf 100644 --- 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 9b8b5106..65dafbc0 100644 --- 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); }