From e8204b6b66232570e9641548cbd7171e8685dc7e Mon Sep 17 00:00:00 2001 From: Bart Polot Date: Sun, 22 Apr 2012 20:46:42 +0000 Subject: [PATCH] - Added key info on monitor tool output --- src/dht/gnunet-dht-monitor.c | 11 +++++++---- 1 file 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, const struct GNUNET_PeerIdentity *path, const GNUNET_HashCode * key) { - FPRINTF (stdout, "Result %d, operation: %s, type %d\n", + FPRINTF (stdout, "Result %d, operation: %s, type %d\n Key: %s", result_count, "GET", - type); + type, + GNUNET_h2s_full(key)); result_count++; } @@ -166,10 +167,11 @@ get_resp_callback (void *cls, const void *data, size_t size) { - FPRINTF (stdout, "Result %d, operation: %s, type %d:\n%.*s\n", + FPRINTF (stdout, "Result %d, operation: %s, type %d:\n Key: %s\n %.*s\n", result_count, "GET_RESP", type, + GNUNET_h2s_full(key), (unsigned int) size, (char *) data); result_count++; @@ -203,10 +205,11 @@ put_callback (void *cls, const void *data, size_t size) { - FPRINTF (stdout, "Result %d, operation: %s, type %d:\n%.*s\n", + FPRINTF (stdout, "Result %d, operation: %s, type %d:\n Key: %s\n %.*s\n", result_count, "PUT", type, + GNUNET_h2s_full(key), (unsigned int) size, (char *) data); result_count++; -- 2.25.1