From 4ec381712068221d4048123510ff4b1185ba1598 Mon Sep 17 00:00:00 2001 From: toyg Date: Thu, 16 Jan 2014 01:36:26 +0000 Subject: [PATCH] printf call expects long int --- libtorrent/src/kademlia/node.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libtorrent/src/kademlia/node.cpp b/libtorrent/src/kademlia/node.cpp index c0f65e47..84d0fb06 100644 --- a/libtorrent/src/kademlia/node.cpp +++ b/libtorrent/src/kademlia/node.cpp @@ -628,7 +628,7 @@ bool node_impl::save_storage(entry &save) const { if( m_storage_table.size() == 0 ) return did_something; - printf("node dht: saving storage... (storage_table.size = %d)\n", m_storage_table.size()); + printf("node dht: saving storage... (storage_table.size = %lu)\n", m_storage_table.size()); for (dht_storage_table_t::const_iterator i = m_storage_table.begin(), iend(m_storage_table.end()); i != iend; ++i ) @@ -663,7 +663,7 @@ void node_impl::load_storage(entry const* e) { if( !e || e->type() != entry::dictionary_t) return; - printf("node dht: loading storage... (%d node_id keys)\n", e->dict().size()); + printf("node dht: loading storage... (%lu node_id keys)\n", e->dict().size()); for (entry::dictionary_type::const_iterator i = e->dict().begin(); i != e->dict().end(); ++i) {