diff options
author | Christian Grothoff <christian@grothoff.org> | 2010-05-25 15:51:40 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2010-05-25 15:51:40 +0000 |
commit | 1b99a76e7cc3ac842184e6a27b2fb3b8a776796f (patch) | |
tree | d934c9f4fa1558d8f99979838b3b5b049641fb78 /src/transport/transport_api.c | |
parent | 6c46a2edffe33ae1d549079d73bfaa6939d25d37 (diff) | |
download | gnunet-1b99a76e7cc3ac842184e6a27b2fb3b8a776796f.tar.gz gnunet-1b99a76e7cc3ac842184e6a27b2fb3b8a776796f.zip |
better messages
Diffstat (limited to 'src/transport/transport_api.c')
-rw-r--r-- | src/transport/transport_api.c | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/src/transport/transport_api.c b/src/transport/transport_api.c index aaea7162c..578400cdc 100644 --- a/src/transport/transport_api.c +++ b/src/transport/transport_api.c | |||
@@ -648,7 +648,7 @@ schedule_transmission (struct GNUNET_TRANSPORT_Handle *h) | |||
648 | if (h->client == NULL) | 648 | if (h->client == NULL) |
649 | { | 649 | { |
650 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, | 650 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, |
651 | "Could not yet schedule transmission: we are not yet connected to the transport service!\n"); | 651 | _("Could not yet schedule transmission: we are not yet connected to the transport service!\n")); |
652 | return; /* not yet connected */ | 652 | return; /* not yet connected */ |
653 | } | 653 | } |
654 | if (NULL != h->control_head) | 654 | if (NULL != h->control_head) |
@@ -662,6 +662,10 @@ schedule_transmission (struct GNUNET_TRANSPORT_Handle *h) | |||
662 | if (th == NULL) | 662 | if (th == NULL) |
663 | { | 663 | { |
664 | /* no transmission ready right now */ | 664 | /* no transmission ready right now */ |
665 | #if DEBUG_TRANSPORT | ||
666 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | ||
667 | "Could not yet schedule transmission: none ready\n"); | ||
668 | #endif | ||
665 | return; | 669 | return; |
666 | } | 670 | } |
667 | size = th->notify_size; | 671 | size = th->notify_size; |
@@ -1704,7 +1708,12 @@ GNUNET_TRANSPORT_notify_transmit_ready (struct GNUNET_TRANSPORT_Handle | |||
1704 | if (n == NULL) | 1708 | if (n == NULL) |
1705 | n = neighbour_add (handle, target); | 1709 | n = neighbour_add (handle, target); |
1706 | if (n == NULL) | 1710 | if (n == NULL) |
1707 | return NULL; | 1711 | { |
1712 | GNUNET_log (GNUNET_ERROR_TYPE_WARNING, | ||
1713 | "Could not create neighbour entry for peer `%s'\n", | ||
1714 | GNUNET_i2s (target)); | ||
1715 | return NULL; | ||
1716 | } | ||
1708 | switch (n->transmit_stage) | 1717 | switch (n->transmit_stage) |
1709 | { | 1718 | { |
1710 | case TS_NEW: | 1719 | case TS_NEW: |