gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r16291 - gnunet/src/transport


From: gnunet
Subject: [GNUnet-SVN] r16291 - gnunet/src/transport
Date: Mon, 1 Aug 2011 22:40:11 +0200

Author: grothoff
Date: 2011-08-01 22:40:11 +0200 (Mon, 01 Aug 2011)
New Revision: 16291

Modified:
   gnunet/src/transport/test_quota_compliance.c
   gnunet/src/transport/test_transport_api_multiaddress.c
Log:
LRN: Fix debug logging in some transport tests

Modified: gnunet/src/transport/test_quota_compliance.c
===================================================================
--- gnunet/src/transport/test_quota_compliance.c        2011-08-01 20:38:50 UTC 
(rev 16290)
+++ gnunet/src/transport/test_quota_compliance.c        2011-08-01 20:40:11 UTC 
(rev 16291)
@@ -303,16 +303,9 @@
       ret += sizeof (struct TestMessage);
       memset (&cbuf[ret], last_msg_sent, s - sizeof (struct TestMessage));
       ret += s - sizeof (struct TestMessage);
-#if DEBUG_MEASUREMENT
-      if (n % 5000 == 0)
-       {
-          GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
-                      "Sending message %u\n",n);
-       }
-#endif
 
-    /*      GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
-                      "Sending message %u\n",last_msg_sent);*/
+      GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
+                  "Sending message %u\n",last_msg_sent);
 
       s = get_size ();
       if (0 == GNUNET_CRYPTO_random_u32 (GNUNET_CRYPTO_QUALITY_WEAK, 16))

Modified: gnunet/src/transport/test_transport_api_multiaddress.c
===================================================================
--- gnunet/src/transport/test_transport_api_multiaddress.c      2011-08-01 
20:38:50 UTC (rev 16290)
+++ gnunet/src/transport/test_transport_api_multiaddress.c      2011-08-01 
20:40:11 UTC (rev 16291)
@@ -228,54 +228,7 @@
   p->arm_proc = GNUNET_OS_start_process (NULL, NULL, "gnunet-service-arm",
                                         "gnunet-service-arm",
 #if VERBOSE_ARM
-
-                                        if (is_https)
-                                          {
-                                            struct stat sbuf;
-                                            if (0 == stat (cert_file_p1, &sbuf 
))
-                                              {
-                                                if (0 == remove(cert_file_p1))
-                                                  GNUNET_log 
(GNUNET_ERROR_TYPE_DEBUG,
-                                                              "Successfully 
removed existing certificate file `%s'\n",cert_file_p1);
-                                                else
-                                                  GNUNET_log 
(GNUNET_ERROR_TYPE_ERROR,
-                                                              "Failed to 
remove certfile `%s'\n",cert_file_p1);
-                                              }
-
-                                            if (0 == stat (key_file_p1, &sbuf 
))
-                                              {
-                                                if (0 == remove(key_file_p1))
-                                                  GNUNET_log 
(GNUNET_ERROR_TYPE_DEBUG,
-                                                              "Successfully 
removed private key file `%s'\n",key_file_p1);
-                                                else
-                                                  GNUNET_log 
(GNUNET_ERROR_TYPE_ERROR,
-                                                              "Failed to 
private key file `%s'\n",key_file_p1);
-                                              }
-
-                                            if (0 == stat (cert_file_p2, &sbuf 
))
-                                              {
-                                                if (0 == remove(cert_file_p2))
-                                                  GNUNET_log 
(GNUNET_ERROR_TYPE_DEBUG,
-                                                              "Successfully 
removed existing certificate file `%s'\n",cert_file_p2);
-                                                else
-                                                  GNUNET_log 
(GNUNET_ERROR_TYPE_ERROR,
-                                                              "Failed to 
remove certfile `%s'\n",cert_file_p2);
-                                              }
-
-                                            if (0 == stat (key_file_p2, &sbuf 
))
-                                              {
-                                                if (0 == remove(key_file_p2))
-                                                  GNUNET_log 
(GNUNET_ERROR_TYPE_DEBUG,
-                                                              "Successfully 
removed private key file `%s'\n",key_file_p2);
-                                                else
-                                                  GNUNET_log 
(GNUNET_ERROR_TYPE_ERROR,
-                                                              "Failed to 
private key file `%s'\n",key_file_p2);
-                                              }
-                                            GNUNET_free(key_file_p1);
-                                            GNUNET_free(key_file_p2);
-                                            GNUNET_free(cert_file_p1);
-                                            GNUNET_free(cert_file_p2);
-                                          }                                 
"-L", "DEBUG",
+                                        "-L", "DEBUG",
 #endif
                                         "-c", cfgname, NULL);
 #endif




reply via email to

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