cleaner message
authorChristian Grothoff <christian@grothoff.org>
Tue, 14 Jun 2011 12:12:52 +0000 (12:12 +0000)
committerChristian Grothoff <christian@grothoff.org>
Tue, 14 Jun 2011 12:12:52 +0000 (12:12 +0000)
src/arm/gnunet-arm.c
src/util/network.c

index ba74e8223b6110401241385fd91926d363e90c60..65417647b08b5a674dc94862385fdc88a3a118d2 100644 (file)
@@ -153,7 +153,7 @@ confirm_cb (void *cls, int success)
     {
     case GNUNET_OK:
       if (quiet != GNUNET_YES)
-        fprintf(stdout, _("Service `%s' is now running.\n"), service);
+        fprintf(stdout, _("Service `%s' has been started.\n"), service);
       if ((phase - 1 != 2) && (phase - 1 != 3))
         {
           if (quiet != GNUNET_YES)
@@ -163,7 +163,7 @@ confirm_cb (void *cls, int success)
       break;
     case GNUNET_NO:
       if (quiet != GNUNET_YES)
-        fprintf(stdout, _("Service `%s' is not running.\n"), service);
+        fprintf(stdout, _("Service `%s' has been stopped.\n"), service);
       if ((phase - 1 != 0) && (phase - 1 != 1))
         {
           if (quiet != GNUNET_YES)
index 49e50101ba8f750e77f670e6b7a71b34355ded92..38323311e4575d3f003dafc7488d0b4f37a5473e 100644 (file)
@@ -565,6 +565,14 @@ GNUNET_NETWORK_socket_send (const struct GNUNET_NETWORK_Handle * desc,
   flags |= MSG_NOSIGNAL;
 
 #endif
+  if ( (length > 200) && (0 == (3 & (long)buffer)) )
+    {
+      const struct GNUNET_MessageHeader *hdr = buffer;
+      fprintf (stderr, "T: %u, S: %u\n",
+              ntohs (hdr->type),
+              ntohs (hdr->size));
+    }
+       
   ret = send (desc->fd, buffer, length, flags);
 
 #ifdef MINGW