diff options
author | Bart Polot <bart@net.in.tum.de> | 2014-02-05 17:24:29 +0000 |
---|---|---|
committer | Bart Polot <bart@net.in.tum.de> | 2014-02-05 17:24:29 +0000 |
commit | 9e6e6cf1ecb4424d93e8447d89b50a0d3cefeaf9 (patch) | |
tree | 5fca4a23f255499f71cdc431bccd5c9e5f2d30c2 /src/dht | |
parent | 1a68a2396c78c31817248d024737277872371a6f (diff) | |
download | gnunet-9e6e6cf1ecb4424d93e8447d89b50a0d3cefeaf9.tar.gz gnunet-9e6e6cf1ecb4424d93e8447d89b50a0d3cefeaf9.zip |
- log FULL keys on mismatch
Diffstat (limited to 'src/dht')
-rw-r--r-- | src/dht/gnunet-service-dht_neighbours.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dht/gnunet-service-dht_neighbours.c b/src/dht/gnunet-service-dht_neighbours.c index 6e34cbd8f..7344abd35 100644 --- a/src/dht/gnunet-service-dht_neighbours.c +++ b/src/dht/gnunet-service-dht_neighbours.c | |||
@@ -1669,11 +1669,11 @@ handle_dht_p2p_put (void *cls, | |||
1669 | case GNUNET_YES: | 1669 | case GNUNET_YES: |
1670 | if (0 != memcmp (&test_key, &put->key, sizeof (struct GNUNET_HashCode))) | 1670 | if (0 != memcmp (&test_key, &put->key, sizeof (struct GNUNET_HashCode))) |
1671 | { | 1671 | { |
1672 | char *put_s = GNUNET_strdup (GNUNET_h2s (&put->key)); | 1672 | char *put_s = GNUNET_strdup (GNUNET_h2s_full (&put->key)); |
1673 | GNUNET_break_op (0); | 1673 | GNUNET_break_op (0); |
1674 | GNUNET_log (GNUNET_ERROR_TYPE_WARNING, | 1674 | GNUNET_log (GNUNET_ERROR_TYPE_WARNING, |
1675 | "PUT with key `%s' for block with key %s\n", | 1675 | "PUT with key `%s' for block with key %s\n", |
1676 | put_s, GNUNET_h2s (&test_key)); | 1676 | put_s, GNUNET_h2s_full (&test_key)); |
1677 | GNUNET_free (put_s); | 1677 | GNUNET_free (put_s); |
1678 | return GNUNET_YES; | 1678 | return GNUNET_YES; |
1679 | } | 1679 | } |