From c4647545a02bd5f6b28bdb2bcd50a915ef04cf8c Mon Sep 17 00:00:00 2001 From: Roger Dingledine Date: Sun, 4 Jun 2006 06:17:32 +0000 Subject: [PATCH] if we insist on printing pointer values, at least make it stop complaining on (my particular) 64 bit platform. svn:r6530 --- src/or/eventdns.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/or/eventdns.c b/src/or/eventdns.c index 8bb96a4ea5..ad8250ce51 100644 --- a/src/or/eventdns.c +++ b/src/or/eventdns.c @@ -477,7 +477,7 @@ request_finished(struct request *const req, struct request **head) { } } - log("Removing timeout for %x\n", (unsigned) req); + log("Removing timeout for %lx\n", (unsigned long) req); evtimer_del(&req->timeout_event); search_request_finished(req); @@ -933,7 +933,7 @@ static void eventdns_request_timeout_callback(int fd, short events, void *arg) { struct request *const req = (struct request *) arg; - log("Request %x timed out\n", (unsigned) arg); + log("Request %lx timed out\n", (unsigned long) arg); req->ns->timedout++; if (req->ns->timedout > global_max_nameserver_timeout) { @@ -1005,7 +1005,7 @@ eventdns_request_transmit(struct request *req) { // fall through default: // all ok - log("Setting timeout for %x\n", (unsigned) req); + log("Setting timeout for %lx\n", (unsigned long) req); evtimer_set(&req->timeout_event, eventdns_request_timeout_callback, req); evtimer_add(&req->timeout_event, &global_timeout); req->tx_count++;