aboutsummaryrefslogtreecommitdiff
path: root/src/dht
diff options
context:
space:
mode:
authorBart Polot <bart@net.in.tum.de>2012-04-22 20:46:42 +0000
committerBart Polot <bart@net.in.tum.de>2012-04-22 20:46:42 +0000
commite8204b6b66232570e9641548cbd7171e8685dc7e (patch)
tree0595de87d71e82fcc089d6f1143bbf19f5eea73f /src/dht
parentd0e80bea429cc630f9102eefbe5e798c5e2c0240 (diff)
downloadgnunet-e8204b6b66232570e9641548cbd7171e8685dc7e.tar.gz
gnunet-e8204b6b66232570e9641548cbd7171e8685dc7e.zip
- Added key info on monitor tool output
Diffstat (limited to 'src/dht')
-rw-r--r--src/dht/gnunet-dht-monitor.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/dht/gnunet-dht-monitor.c b/src/dht/gnunet-dht-monitor.c
index 6f2faa99e..8ca3beb2a 100644
--- a/src/dht/gnunet-dht-monitor.c
+++ b/src/dht/gnunet-dht-monitor.c
@@ -133,10 +133,11 @@ get_callback (void *cls,
133 const struct GNUNET_PeerIdentity *path, 133 const struct GNUNET_PeerIdentity *path,
134 const GNUNET_HashCode * key) 134 const GNUNET_HashCode * key)
135{ 135{
136 FPRINTF (stdout, "Result %d, operation: %s, type %d\n", 136 FPRINTF (stdout, "Result %d, operation: %s, type %d\n Key: %s",
137 result_count, 137 result_count,
138 "GET", 138 "GET",
139 type); 139 type,
140 GNUNET_h2s_full(key));
140 result_count++; 141 result_count++;
141} 142}
142 143
@@ -166,10 +167,11 @@ get_resp_callback (void *cls,
166 const void *data, 167 const void *data,
167 size_t size) 168 size_t size)
168{ 169{
169 FPRINTF (stdout, "Result %d, operation: %s, type %d:\n%.*s\n", 170 FPRINTF (stdout, "Result %d, operation: %s, type %d:\n Key: %s\n %.*s\n",
170 result_count, 171 result_count,
171 "GET_RESP", 172 "GET_RESP",
172 type, 173 type,
174 GNUNET_h2s_full(key),
173 (unsigned int) size, 175 (unsigned int) size,
174 (char *) data); 176 (char *) data);
175 result_count++; 177 result_count++;
@@ -203,10 +205,11 @@ put_callback (void *cls,
203 const void *data, 205 const void *data,
204 size_t size) 206 size_t size)
205{ 207{
206 FPRINTF (stdout, "Result %d, operation: %s, type %d:\n%.*s\n", 208 FPRINTF (stdout, "Result %d, operation: %s, type %d:\n Key: %s\n %.*s\n",
207 result_count, 209 result_count,
208 "PUT", 210 "PUT",
209 type, 211 type,
212 GNUNET_h2s_full(key),
210 (unsigned int) size, 213 (unsigned int) size,
211 (char *) data); 214 (char *) data);
212 result_count++; 215 result_count++;