summaryrefslogtreecommitdiff
path: root/src/dht/gnunet-service-dht_neighbours.c
diff options
context:
space:
mode:
authorBart Polot <bart@net.in.tum.de>2013-09-27 12:02:45 +0000
committerBart Polot <bart@net.in.tum.de>2013-09-27 12:02:45 +0000
commitbf96ba720ee6efd131969c4ef188ce3145ae5fac (patch)
tree5e87e9c28865aac630160cb5ae69500e886de43c /src/dht/gnunet-service-dht_neighbours.c
parent3d0980f175eb952957b33518862d226f7484f232 (diff)
downloadgnunet-bf96ba720ee6efd131969c4ef188ce3145ae5fac.tar.gz
gnunet-bf96ba720ee6efd131969c4ef188ce3145ae5fac.zip
- debug
Diffstat (limited to 'src/dht/gnunet-service-dht_neighbours.c')
-rw-r--r--src/dht/gnunet-service-dht_neighbours.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/dht/gnunet-service-dht_neighbours.c b/src/dht/gnunet-service-dht_neighbours.c
index 87581f036..11ba71aef 100644
--- a/src/dht/gnunet-service-dht_neighbours.c
+++ b/src/dht/gnunet-service-dht_neighbours.c
@@ -1602,7 +1602,7 @@ handle_dht_p2p_put (void *cls,
1602 1602
1603 tmp = GNUNET_strdup (GNUNET_i2s (&my_identity)); 1603 tmp = GNUNET_strdup (GNUNET_i2s (&my_identity));
1604 LOG_TRAFFIC (GNUNET_ERROR_TYPE_DEBUG, 1604 LOG_TRAFFIC (GNUNET_ERROR_TYPE_DEBUG,
1605 "XDHT PUT %s: %s->%s (%u, %u=>%u)\n", 1605 "XDHT PUT %s: %s->%s (%u, %u=>%u)\n",
1606 GNUNET_h2s (&put->key), GNUNET_i2s (peer), tmp, 1606 GNUNET_h2s (&put->key), GNUNET_i2s (peer), tmp,
1607 ntohl(put->hop_count), 1607 ntohl(put->hop_count),
1608 GNUNET_CRYPTO_hash_matching_bits (&peer->hashPubKey, &put->key), 1608 GNUNET_CRYPTO_hash_matching_bits (&peer->hashPubKey, &put->key),
@@ -1617,7 +1617,12 @@ handle_dht_p2p_put (void *cls,
1617 case GNUNET_YES: 1617 case GNUNET_YES:
1618 if (0 != memcmp (&test_key, &put->key, sizeof (struct GNUNET_HashCode))) 1618 if (0 != memcmp (&test_key, &put->key, sizeof (struct GNUNET_HashCode)))
1619 { 1619 {
1620 char *put_s = GNUNET_strdup (GNUNET_h2s (&put->key));
1620 GNUNET_break_op (0); 1621 GNUNET_break_op (0);
1622 GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
1623 "PUT with key `%s' for block with key %s\n",
1624 put_s, GNUNET_h2s (&test_key));
1625 GNUNET_free (put_s);
1621 return GNUNET_YES; 1626 return GNUNET_YES;
1622 } 1627 }
1623 break; 1628 break;