From 44ce5c71e791ed933f19e61242dc04b6a41fbb8c Mon Sep 17 00:00:00 2001 From: Steven Siloti Date: Thu, 28 Jul 2016 20:08:24 -0700 Subject: [PATCH] cleanup ip logging --- src/kademlia/routing_table.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/kademlia/routing_table.cpp b/src/kademlia/routing_table.cpp index eb0e41d28..416022de5 100644 --- a/src/kademlia/routing_table.cpp +++ b/src/kademlia/routing_table.cpp @@ -706,8 +706,8 @@ routing_table::add_node_status_t routing_table::add_node_impl(node_entry e) #ifndef TORRENT_DISABLE_LOGGING char hex_id_new[41]; char hex_id_old[41]; - aux::to_hex(reinterpret_cast(&e.id[0]), 20, hex_id_new); - aux::to_hex(reinterpret_cast(&existing->id[0]), 20, hex_id_old); + aux::to_hex(e.id.data(), 20, hex_id_new); + aux::to_hex(existing->id.data(), 20, hex_id_old); m_log->log(dht_logger::routing_table, "evicting node (changed ID): old: %s new: %s %s" , hex_id_old, hex_id_new, print_address(e.addr()).c_str()); #endif