diff options
author | Bart Polot <bart@net.in.tum.de> | 2014-02-05 17:24:31 +0000 |
---|---|---|
committer | Bart Polot <bart@net.in.tum.de> | 2014-02-05 17:24:31 +0000 |
commit | 1bac5c7c1ea598e60bd4e30917e24d7ec178c99d (patch) | |
tree | b44ba2e338887d41a193bbcfa0754f57439a854a /src/dht | |
parent | b2254c7fe51b935fe655ad798d5b05edb61db8c9 (diff) | |
download | gnunet-1bac5c7c1ea598e60bd4e30917e24d7ec178c99d.tar.gz gnunet-1bac5c7c1ea598e60bd4e30917e24d7ec178c99d.zip |
- change log info of LOG_TRAFFIC, use R5N to distinguish from XDHT
Diffstat (limited to 'src/dht')
-rw-r--r-- | src/dht/gnunet-service-dht_clients.c | 14 | ||||
-rw-r--r-- | src/dht/gnunet-service-dht_neighbours.c | 6 |
2 files changed, 10 insertions, 10 deletions
diff --git a/src/dht/gnunet-service-dht_clients.c b/src/dht/gnunet-service-dht_clients.c index 5195fa3ec..2ec3c180c 100644 --- a/src/dht/gnunet-service-dht_clients.c +++ b/src/dht/gnunet-service-dht_clients.c | |||
@@ -511,8 +511,8 @@ handle_dht_local_put (void *cls, struct GNUNET_SERVER_Client *client, | |||
511 | ("# PUT requests received from clients"), 1, | 511 | ("# PUT requests received from clients"), 1, |
512 | GNUNET_NO); | 512 | GNUNET_NO); |
513 | dht_msg = (const struct GNUNET_DHT_ClientPutMessage *) message; | 513 | dht_msg = (const struct GNUNET_DHT_ClientPutMessage *) message; |
514 | LOG_TRAFFIC (GNUNET_ERROR_TYPE_DEBUG, "XDHT CLIENT-PUT %s @ %u\n", | 514 | LOG_TRAFFIC (GNUNET_ERROR_TYPE_DEBUG, "R5N CLIENT-PUT %s\n", |
515 | GNUNET_h2s (&dht_msg->key), getpid ()); | 515 | GNUNET_h2s_full (&dht_msg->key)); |
516 | /* give to local clients */ | 516 | /* give to local clients */ |
517 | LOG (GNUNET_ERROR_TYPE_DEBUG, | 517 | LOG (GNUNET_ERROR_TYPE_DEBUG, |
518 | "Handling local PUT of %u-bytes for query %s\n", | 518 | "Handling local PUT of %u-bytes for query %s\n", |
@@ -598,8 +598,8 @@ handle_dht_local_get (void *cls, struct GNUNET_SERVER_Client *client, | |||
598 | "Received GET request for %s from local client %p, xq: %.*s\n", | 598 | "Received GET request for %s from local client %p, xq: %.*s\n", |
599 | GNUNET_h2s (&get->key), client, xquery_size, xquery); | 599 | GNUNET_h2s (&get->key), client, xquery_size, xquery); |
600 | 600 | ||
601 | LOG_TRAFFIC (GNUNET_ERROR_TYPE_DEBUG, "XDHT CLIENT-GET %s @ %u\n", | 601 | LOG_TRAFFIC (GNUNET_ERROR_TYPE_DEBUG, "R5N CLIENT-GET %s\n", |
602 | GNUNET_h2s (&get->key), getpid ()); | 602 | GNUNET_h2s_full (&get->key)); |
603 | 603 | ||
604 | 604 | ||
605 | cqr = GNUNET_malloc (sizeof (struct ClientQueryRecord) + xquery_size); | 605 | cqr = GNUNET_malloc (sizeof (struct ClientQueryRecord) + xquery_size); |
@@ -1023,10 +1023,10 @@ forward_reply (void *cls, const struct GNUNET_HashCode * key, void *value) | |||
1023 | int do_free; | 1023 | int do_free; |
1024 | struct GNUNET_HashCode ch; | 1024 | struct GNUNET_HashCode ch; |
1025 | unsigned int i; | 1025 | unsigned int i; |
1026 | 1026 | ||
1027 | LOG_TRAFFIC (GNUNET_ERROR_TYPE_DEBUG, | 1027 | LOG_TRAFFIC (GNUNET_ERROR_TYPE_DEBUG, |
1028 | "XDHT CLIENT-RESULT %s\n", | 1028 | "R5N CLIENT-RESULT %s\n", |
1029 | GNUNET_h2s (key)); | 1029 | GNUNET_h2s_full (key)); |
1030 | if ((record->type != GNUNET_BLOCK_TYPE_ANY) && (record->type != frc->type)) | 1030 | if ((record->type != GNUNET_BLOCK_TYPE_ANY) && (record->type != frc->type)) |
1031 | { | 1031 | { |
1032 | LOG (GNUNET_ERROR_TYPE_DEBUG, | 1032 | LOG (GNUNET_ERROR_TYPE_DEBUG, |
diff --git a/src/dht/gnunet-service-dht_neighbours.c b/src/dht/gnunet-service-dht_neighbours.c index 7344abd35..0ee29ec49 100644 --- a/src/dht/gnunet-service-dht_neighbours.c +++ b/src/dht/gnunet-service-dht_neighbours.c | |||
@@ -1654,7 +1654,7 @@ handle_dht_p2p_put (void *cls, | |||
1654 | 1654 | ||
1655 | tmp = GNUNET_strdup (GNUNET_i2s (&my_identity)); | 1655 | tmp = GNUNET_strdup (GNUNET_i2s (&my_identity)); |
1656 | LOG_TRAFFIC (GNUNET_ERROR_TYPE_DEBUG, | 1656 | LOG_TRAFFIC (GNUNET_ERROR_TYPE_DEBUG, |
1657 | "XDHT PUT %s: %s->%s (%u, %u=>%u)\n", | 1657 | "R5N PUT %s: %s->%s (%u, %u=>%u)\n", |
1658 | GNUNET_h2s (&put->key), GNUNET_i2s (peer), tmp, | 1658 | GNUNET_h2s (&put->key), GNUNET_i2s (peer), tmp, |
1659 | ntohl(put->hop_count), | 1659 | ntohl(put->hop_count), |
1660 | GNUNET_CRYPTO_hash_matching_bits (&phash, &put->key), | 1660 | GNUNET_CRYPTO_hash_matching_bits (&phash, &put->key), |
@@ -1913,7 +1913,7 @@ handle_dht_p2p_get (void *cls, const struct GNUNET_PeerIdentity *peer, | |||
1913 | 1913 | ||
1914 | tmp = GNUNET_strdup (GNUNET_i2s (&my_identity)); | 1914 | tmp = GNUNET_strdup (GNUNET_i2s (&my_identity)); |
1915 | LOG_TRAFFIC (GNUNET_ERROR_TYPE_DEBUG, | 1915 | LOG_TRAFFIC (GNUNET_ERROR_TYPE_DEBUG, |
1916 | "XDHT GET %s: %s->%s (%u, %u=>%u) xq: %.*s\n", | 1916 | "R5N GET %s: %s->%s (%u, %u=>%u) xq: %.*s\n", |
1917 | GNUNET_h2s (&get->key), GNUNET_i2s (peer), tmp, | 1917 | GNUNET_h2s (&get->key), GNUNET_i2s (peer), tmp, |
1918 | ntohl(get->hop_count), | 1918 | ntohl(get->hop_count), |
1919 | GNUNET_CRYPTO_hash_matching_bits (&phash, &get->key), | 1919 | GNUNET_CRYPTO_hash_matching_bits (&phash, &get->key), |
@@ -2059,7 +2059,7 @@ handle_dht_p2p_result (void *cls, const struct GNUNET_PeerIdentity *peer, | |||
2059 | char *tmp; | 2059 | char *tmp; |
2060 | 2060 | ||
2061 | tmp = GNUNET_strdup (GNUNET_i2s (&my_identity)); | 2061 | tmp = GNUNET_strdup (GNUNET_i2s (&my_identity)); |
2062 | LOG_TRAFFIC (GNUNET_ERROR_TYPE_DEBUG, "XDHT RESULT %s: %s->%s (%u)\n", | 2062 | LOG_TRAFFIC (GNUNET_ERROR_TYPE_DEBUG, "R5N RESULT %s: %s->%s (%u)\n", |
2063 | GNUNET_h2s (&prm->key), GNUNET_i2s (peer), tmp, | 2063 | GNUNET_h2s (&prm->key), GNUNET_i2s (peer), tmp, |
2064 | get_path_length + 1); | 2064 | get_path_length + 1); |
2065 | GNUNET_free (tmp); | 2065 | GNUNET_free (tmp); |