From 303334e67262bb6121dfbd245c66535f259d08af Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Wed, 25 Apr 2018 16:41:22 +0200 Subject: enable caching private->public key mapping in memory to improve CPU consumption for large zone insertions --- src/gns/gnunet-gns-proxy.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/gns') diff --git a/src/gns/gnunet-gns-proxy.c b/src/gns/gnunet-gns-proxy.c index 8b9aa599e..08663a57e 100644 --- a/src/gns/gnunet-gns-proxy.c +++ b/src/gns/gnunet-gns-proxy.c @@ -855,9 +855,9 @@ mhd_content_cb (void *cls, return MHD_CONTENT_READER_END_OF_STREAM; } GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, - "Writing %lu/%lu bytes\n", - bytes_to_copy, - s5r->io_len); + "Writing %llu/%llu bytes\n", + (unsigned long long) bytes_to_copy, + (unsigned long long) s5r->io_len); GNUNET_memcpy (buf, s5r->io_buf, bytes_to_copy); @@ -1307,12 +1307,12 @@ curl_download_cb (void *ptr, if (sizeof (s5r->io_buf) - s5r->io_len < total) { GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, - "Pausing CURL `%s%s' download, not enough space %lu %lu %lu\n", + "Pausing CURL `%s%s' download, not enough space %llu %llu %llu\n", s5r->domain, s5r->url, - sizeof (s5r->io_buf), - s5r->io_len, - total); + (unsigned long long) sizeof (s5r->io_buf), + (unsigned long long) s5r->io_len, + (unsigned long long) total); return CURL_WRITEFUNC_PAUSE; /* not enough space */ } GNUNET_memcpy (&s5r->io_buf[s5r->io_len], -- cgit v1.2.3