diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-05-16 11:40:00 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-05-16 11:40:00 +0000 |
commit | cfb38354eaa74f7ade3b3cc8e9f08400b3563cce (patch) | |
tree | 2f04c50b4614e761b498944e73fbf4f990d7856b | |
parent | a86e52c253d4d4157b328c4cb288076b593d31dc (diff) | |
download | gnunet-cfb38354eaa74f7ade3b3cc8e9f08400b3563cce.tar.gz gnunet-cfb38354eaa74f7ade3b3cc8e9f08400b3563cce.zip |
-more logging
-rw-r--r-- | src/transport/gnunet-service-transport_neighbours.c | 5 | ||||
-rw-r--r-- | src/transport/plugin_transport_tcp.c | 8 |
2 files changed, 8 insertions, 5 deletions
diff --git a/src/transport/gnunet-service-transport_neighbours.c b/src/transport/gnunet-service-transport_neighbours.c index f3e67fb66..450da0637 100644 --- a/src/transport/gnunet-service-transport_neighbours.c +++ b/src/transport/gnunet-service-transport_neighbours.c | |||
@@ -283,7 +283,7 @@ enum State | |||
283 | /** | 283 | /** |
284 | * fresh peer or completely disconnected | 284 | * fresh peer or completely disconnected |
285 | */ | 285 | */ |
286 | S_NOT_CONNECTED, | 286 | S_NOT_CONNECTED = 0, |
287 | 287 | ||
288 | /** | 288 | /** |
289 | * Asked to initiate connection, trying to get address from ATS | 289 | * Asked to initiate connection, trying to get address from ATS |
@@ -1415,6 +1415,9 @@ GST_neighbours_send (const struct GNUNET_PeerIdentity *target, const void *msg, | |||
1415 | } | 1415 | } |
1416 | if ((NULL == n->primary_address.session) && (NULL == n->primary_address.address)) | 1416 | if ((NULL == n->primary_address.session) && (NULL == n->primary_address.address)) |
1417 | { | 1417 | { |
1418 | GNUNET_log (GNUNET_ERROR_TYPE_WARNING, | ||
1419 | "GST_neighbours_sent called in state %d\n", | ||
1420 | n->state); | ||
1418 | GNUNET_break (0); | 1421 | GNUNET_break (0); |
1419 | if (NULL != cont) | 1422 | if (NULL != cont) |
1420 | cont (cont_cls, GNUNET_SYSERR); | 1423 | cont (cont_cls, GNUNET_SYSERR); |
diff --git a/src/transport/plugin_transport_tcp.c b/src/transport/plugin_transport_tcp.c index 880f5078c..076d5db71 100644 --- a/src/transport/plugin_transport_tcp.c +++ b/src/transport/plugin_transport_tcp.c | |||
@@ -1892,10 +1892,10 @@ handle_tcp_data (void *cls, struct GNUNET_SERVER_Client *client, | |||
1892 | 1892 | ||
1893 | GNUNET_SERVER_client_get_address (client, &vaddr, &alen); | 1893 | GNUNET_SERVER_client_get_address (client, &vaddr, &alen); |
1894 | LOG (GNUNET_ERROR_TYPE_ERROR, | 1894 | LOG (GNUNET_ERROR_TYPE_ERROR, |
1895 | "Received unexpected %u bytes of type %u from `%s'\n", | 1895 | "Received unexpected %u bytes of type %u from `%s'\n", |
1896 | (unsigned int) ntohs (message->size), | 1896 | (unsigned int) ntohs (message->size), |
1897 | (unsigned int) ntohs (message->type), | 1897 | (unsigned int) ntohs (message->type), |
1898 | GNUNET_a2s(vaddr, alen)); | 1898 | GNUNET_a2s(vaddr, alen)); |
1899 | GNUNET_break_op (0); | 1899 | GNUNET_break_op (0); |
1900 | GNUNET_SERVER_receive_done (client, GNUNET_SYSERR); | 1900 | GNUNET_SERVER_receive_done (client, GNUNET_SYSERR); |
1901 | GNUNET_free_non_null(vaddr); | 1901 | GNUNET_free_non_null(vaddr); |