print peer-names correctly;
authorPhilipp Tölke <toelke@in.tum.de>
Wed, 15 Jun 2011 07:15:47 +0000 (07:15 +0000)
committerPhilipp Tölke <toelke@in.tum.de>
Wed, 15 Jun 2011 07:15:47 +0000 (07:15 +0000)
src/vpn/gnunet-service-dns.c

index 534be5626d847d81690126e060be7e60844e970a..ae2e287f3793d84a069f81c1802ae4201eff8996 100644 (file)
@@ -239,7 +239,7 @@ mesh_send (void *cls, size_t size, void *buf)
 
 void mesh_connect (void* cls, const struct GNUNET_PeerIdentity* peer, const struct GNUNET_TRANSPORT_ATS_Information *atsi __attribute__((unused))) {
   if (NULL == peer) return;
-  GNUNET_log(GNUNET_ERROR_TYPE_DEBUG, "Connected to peer %x\n", *((unsigned long*)peer));
+  GNUNET_log(GNUNET_ERROR_TYPE_DEBUG, "Connected to peer %s\n", GNUNET_i2s(peer));
   struct tunnel_cls *cls_ = (struct tunnel_cls*)cls;
 
   GNUNET_MESH_notify_transmit_ready(cls_->tunnel,