gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r29625 - gnunet/src/regex


From: gnunet
Subject: [GNUnet-SVN] r29625 - gnunet/src/regex
Date: Thu, 26 Sep 2013 17:37:17 +0200

Author: bartpolot
Date: 2013-09-26 17:37:17 +0200 (Thu, 26 Sep 2013)
New Revision: 29625

Modified:
   gnunet/src/regex/regex_block_lib.c
   gnunet/src/regex/regex_internal_dht.c
Log:
- more log, style


Modified: gnunet/src/regex/regex_block_lib.c
===================================================================
--- gnunet/src/regex/regex_block_lib.c  2013-09-26 15:20:16 UTC (rev 29624)
+++ gnunet/src/regex/regex_block_lib.c  2013-09-26 15:37:17 UTC (rev 29625)
@@ -257,8 +257,8 @@
  */
 int
 REGEX_BLOCK_get_key (const struct RegexBlock *block,
-                    size_t block_len,
-                    struct GNUNET_HashCode *key)
+                     size_t block_len,
+                     struct GNUNET_HashCode *key)
 {
   uint16_t len;
   const struct GNUNET_HashCode *destinations;

Modified: gnunet/src/regex/regex_internal_dht.c
===================================================================
--- gnunet/src/regex/regex_internal_dht.c       2013-09-26 15:20:16 UTC (rev 
29624)
+++ gnunet/src/regex/regex_internal_dht.c       2013-09-26 15:37:17 UTC (rev 
29625)
@@ -92,17 +92,26 @@
   struct REGEX_INTERNAL_Announcement *h = cls;
   struct RegexBlock *block;
   size_t size;
+  unsigned int i;
 
-  LOG (GNUNET_ERROR_TYPE_DEBUG,
+  LOG (GNUNET_ERROR_TYPE_INFO,
        "DHT PUT for state %s with proof `%s' and %u edges\n",
        GNUNET_h2s (key),
        proof,
        num_edges);
+  for (i = 0; i < num_edges; i++)
+  {
+    LOG (GNUNET_ERROR_TYPE_INFO,
+         "  edge %s towards %s (%s)\n",
+         edges[i].label,
+         GNUNET_h2s (&edges[i].destination),
+         proof);
+  }
   if (GNUNET_YES == accepting)
   {
     struct RegexAcceptBlock ab;
 
-    LOG (GNUNET_ERROR_TYPE_DEBUG,
+    LOG (GNUNET_ERROR_TYPE_INFO,
          "State %s is accepting, putting own id\n",
          GNUNET_h2s (key));
     size = sizeof (struct RegexAcceptBlock);
@@ -134,15 +143,15 @@
                     NULL, NULL);
   }
   block = REGEX_BLOCK_create (proof,
-                             num_edges, edges,
-                             accepting,
-                             &size);
+                              num_edges, edges,
+                              accepting,
+                              &size);
   (void)
   GNUNET_DHT_put (h->dht, key,
                   DHT_REPLICATION,
                   DHT_OPT,
                   GNUNET_BLOCK_TYPE_REGEX, 
-                 size, block,
+                  size, block,
                   GNUNET_TIME_relative_to_absolute (DHT_TTL),
                   DHT_TTL,
                   NULL, NULL);




reply via email to

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