gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r21082 - gnunet/src/dht


From: gnunet
Subject: [GNUnet-SVN] r21082 - gnunet/src/dht
Date: Sun, 22 Apr 2012 22:46:42 +0200

Author: bartpolot
Date: 2012-04-22 22:46:42 +0200 (Sun, 22 Apr 2012)
New Revision: 21082

Modified:
   gnunet/src/dht/gnunet-dht-monitor.c
Log:
- Added key info on monitor tool output


Modified: gnunet/src/dht/gnunet-dht-monitor.c
===================================================================
--- gnunet/src/dht/gnunet-dht-monitor.c 2012-04-22 20:27:53 UTC (rev 21081)
+++ gnunet/src/dht/gnunet-dht-monitor.c 2012-04-22 20:46:42 UTC (rev 21082)
@@ -133,10 +133,11 @@
               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 @@
                    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 @@
               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++;




reply via email to

[Prev in Thread] Current Thread [Next in Thread]