aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/arm/gnunet-arm.c4
-rw-r--r--src/util/network.c8
2 files changed, 10 insertions, 2 deletions
diff --git a/src/arm/gnunet-arm.c b/src/arm/gnunet-arm.c
index ba74e8223..65417647b 100644
--- a/src/arm/gnunet-arm.c
+++ b/src/arm/gnunet-arm.c
@@ -153,7 +153,7 @@ confirm_cb (void *cls, int success)
153 { 153 {
154 case GNUNET_OK: 154 case GNUNET_OK:
155 if (quiet != GNUNET_YES) 155 if (quiet != GNUNET_YES)
156 fprintf(stdout, _("Service `%s' is now running.\n"), service); 156 fprintf(stdout, _("Service `%s' has been started.\n"), service);
157 if ((phase - 1 != 2) && (phase - 1 != 3)) 157 if ((phase - 1 != 2) && (phase - 1 != 3))
158 { 158 {
159 if (quiet != GNUNET_YES) 159 if (quiet != GNUNET_YES)
@@ -163,7 +163,7 @@ confirm_cb (void *cls, int success)
163 break; 163 break;
164 case GNUNET_NO: 164 case GNUNET_NO:
165 if (quiet != GNUNET_YES) 165 if (quiet != GNUNET_YES)
166 fprintf(stdout, _("Service `%s' is not running.\n"), service); 166 fprintf(stdout, _("Service `%s' has been stopped.\n"), service);
167 if ((phase - 1 != 0) && (phase - 1 != 1)) 167 if ((phase - 1 != 0) && (phase - 1 != 1))
168 { 168 {
169 if (quiet != GNUNET_YES) 169 if (quiet != GNUNET_YES)
diff --git a/src/util/network.c b/src/util/network.c
index 49e50101b..38323311e 100644
--- a/src/util/network.c
+++ b/src/util/network.c
@@ -565,6 +565,14 @@ GNUNET_NETWORK_socket_send (const struct GNUNET_NETWORK_Handle * desc,
565 flags |= MSG_NOSIGNAL; 565 flags |= MSG_NOSIGNAL;
566 566
567#endif 567#endif
568 if ( (length > 200) && (0 == (3 & (long)buffer)) )
569 {
570 const struct GNUNET_MessageHeader *hdr = buffer;
571 fprintf (stderr, "T: %u, S: %u\n",
572 ntohs (hdr->type),
573 ntohs (hdr->size));
574 }
575
568 ret = send (desc->fd, buffer, length, flags); 576 ret = send (desc->fd, buffer, length, flags);
569 577
570#ifdef MINGW 578#ifdef MINGW