gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r32556 - gnunet/src/mesh


From: gnunet
Subject: [GNUnet-SVN] r32556 - gnunet/src/mesh
Date: Thu, 6 Mar 2014 02:36:42 +0100

Author: bartpolot
Date: 2014-03-06 02:36:42 +0100 (Thu, 06 Mar 2014)
New Revision: 32556

Modified:
   gnunet/src/mesh/test_mesh_small.c
Log:
- debug, indentation

Modified: gnunet/src/mesh/test_mesh_small.c
===================================================================
--- gnunet/src/mesh/test_mesh_small.c   2014-03-06 01:36:40 UTC (rev 32555)
+++ gnunet/src/mesh/test_mesh_small.c   2014-03-06 01:36:42 UTC (rev 32556)
@@ -578,6 +578,7 @@
 static void
 stats_cont (void *cls, int success)
 {
+  GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "stats_cont for peer %u\n", cls);
   GNUNET_TESTBED_operation_done (stats_op);
   stats_get = NULL;
   if (NULL == cls)
@@ -615,6 +616,8 @@
 stats_iterator (void *cls, const char *subsystem, const char *name,
                 uint64_t value, int is_persistent)
 {
+  GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "  %u - %s [%s]: %llu\n",
+              cls, subsystem, name, value);
   if (0 == strncmp("# keepalives sent", name,
                    strlen("# keepalives sent"))
       && 0 == stats_peer)
@@ -655,12 +658,12 @@
     return;
   }
 
-  GNUNET_log (GNUNET_ERROR_TYPE_INFO, "stats for peer %u\n", cls);
+  GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "stats for peer %u\n", cls);
   stats = ca_result;
 
   stats_get = GNUNET_STATISTICS_get (stats, "mesh", NULL,
-                                      GNUNET_TIME_UNIT_FOREVER_REL,
-                                      &stats_cont, &stats_iterator, cls);
+                                     GNUNET_TIME_UNIT_FOREVER_REL,
+                                     &stats_cont, &stats_iterator, cls);
   if (NULL == stats_get)
   {
     GNUNET_log (GNUNET_ERROR_TYPE_ERROR,




reply via email to

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