From: Bart Polot Date: Sun, 22 Apr 2012 20:46:42 +0000 (+0000) Subject: - Added key info on monitor tool output X-Git-Tag: initial-import-from-subversion-38251~13838 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=e8204b6b66232570e9641548cbd7171e8685dc7e;p=oweals%2Fgnunet.git - Added key info on monitor tool output --- 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++;