aboutsummaryrefslogtreecommitdiff
path: root/src/mesh
diff options
context:
space:
mode:
authorBart Polot <bart@net.in.tum.de>2014-04-11 17:01:27 +0000
committerBart Polot <bart@net.in.tum.de>2014-04-11 17:01:27 +0000
commitc378cd086abad7edbc13a823b2c6096e6548ccdb (patch)
tree21cea7308d456f73a9b0ab2df646c690d5de0496 /src/mesh
parentf3e8dd9be26aa204b77472bc5049fc63ccf98564 (diff)
downloadgnunet-c378cd086abad7edbc13a823b2c6096e6548ccdb.tar.gz
gnunet-c378cd086abad7edbc13a823b2c6096e6548ccdb.zip
- log
Diffstat (limited to 'src/mesh')
-rw-r--r--src/mesh/gnunet-service-mesh_connection.c6
-rw-r--r--src/mesh/gnunet-service-mesh_tunnel.c8
-rw-r--r--src/mesh/mesh_common.c2
3 files changed, 8 insertions, 8 deletions
diff --git a/src/mesh/gnunet-service-mesh_connection.c b/src/mesh/gnunet-service-mesh_connection.c
index 022b54d3a..2745fd4e4 100644
--- a/src/mesh/gnunet-service-mesh_connection.c
+++ b/src/mesh/gnunet-service-mesh_connection.c
@@ -815,7 +815,7 @@ send_connection_ack (struct MeshConnection *connection, int fwd)
815 struct MeshTunnel3 *t; 815 struct MeshTunnel3 *t;
816 816
817 t = connection->t; 817 t = connection->t;
818 LOG (GNUNET_ERROR_TYPE_INFO, "=> {%18s ACK} on connection %s\n", 818 LOG (GNUNET_ERROR_TYPE_INFO, "===> {%14s ACK} on connection %s\n",
819 GM_f2s (!fwd), GMC_2s (connection)); 819 GM_f2s (!fwd), GMC_2s (connection));
820 GMP_queue_add (get_hop (connection, fwd), NULL, 820 GMP_queue_add (get_hop (connection, fwd), NULL,
821 GNUNET_MESSAGE_TYPE_MESH_CONNECTION_ACK, 821 GNUNET_MESSAGE_TYPE_MESH_CONNECTION_ACK,
@@ -875,7 +875,7 @@ send_broken2 (struct GNUNET_MESH_Hash *connection_id,
875 struct GNUNET_MESH_ConnectionBroken *msg; 875 struct GNUNET_MESH_ConnectionBroken *msg;
876 struct MeshPeer *neighbor; 876 struct MeshPeer *neighbor;
877 877
878 LOG (GNUNET_ERROR_TYPE_INFO, "=> BROKEN on unknown connection %s\n", 878 LOG (GNUNET_ERROR_TYPE_INFO, "===> BROKEN on unknown connection %s\n",
879 GNUNET_h2s (GM_h2hc (connection_id))); 879 GNUNET_h2s (GM_h2hc (connection_id)));
880 880
881 msg = GNUNET_new (struct GNUNET_MESH_ConnectionBroken); 881 msg = GNUNET_new (struct GNUNET_MESH_ConnectionBroken);
@@ -3036,7 +3036,7 @@ GMC_send_create (struct MeshConnection *connection)
3036 size = sizeof (struct GNUNET_MESH_ConnectionCreate); 3036 size = sizeof (struct GNUNET_MESH_ConnectionCreate);
3037 size += connection->path->length * sizeof (struct GNUNET_PeerIdentity); 3037 size += connection->path->length * sizeof (struct GNUNET_PeerIdentity);
3038 3038
3039 LOG (GNUNET_ERROR_TYPE_INFO, "=> %s on connection %s (%u bytes)\n", 3039 LOG (GNUNET_ERROR_TYPE_INFO, "===> %s on connection %s (%u bytes)\n",
3040 GM_m2s (GNUNET_MESSAGE_TYPE_MESH_CONNECTION_CREATE), 3040 GM_m2s (GNUNET_MESSAGE_TYPE_MESH_CONNECTION_CREATE),
3041 GMC_2s (connection), size); 3041 GMC_2s (connection), size);
3042 LOG (GNUNET_ERROR_TYPE_DEBUG, " C_P+ %p %u (create)\n", 3042 LOG (GNUNET_ERROR_TYPE_DEBUG, " C_P+ %p %u (create)\n",
diff --git a/src/mesh/gnunet-service-mesh_tunnel.c b/src/mesh/gnunet-service-mesh_tunnel.c
index ed478a7ab..fbb28f53d 100644
--- a/src/mesh/gnunet-service-mesh_tunnel.c
+++ b/src/mesh/gnunet-service-mesh_tunnel.c
@@ -1506,7 +1506,7 @@ handle_ephemeral (struct MeshTunnel3 *t,
1506 const struct GNUNET_MESH_KX_Ephemeral *msg) 1506 const struct GNUNET_MESH_KX_Ephemeral *msg)
1507{ 1507{
1508 struct GNUNET_HashCode km; 1508 struct GNUNET_HashCode km;
1509 LOG (GNUNET_ERROR_TYPE_INFO, "<= EPHM for %s\n", GMT_2s (t)); 1509 LOG (GNUNET_ERROR_TYPE_INFO, "<=== EPHM for %s\n", GMT_2s (t));
1510 1510
1511 if (GNUNET_OK != check_ephemeral (t, msg)) 1511 if (GNUNET_OK != check_ephemeral (t, msg))
1512 { 1512 {
@@ -1545,7 +1545,7 @@ handle_ping (struct MeshTunnel3 *t,
1545 return; 1545 return;
1546 } 1546 }
1547 1547
1548 LOG (GNUNET_ERROR_TYPE_INFO, "<= PING for %s\n", GMT_2s (t)); 1548 LOG (GNUNET_ERROR_TYPE_INFO, "<=== PING for %s\n", GMT_2s (t));
1549 t_decrypt (t, &res.target, &msg->target, ping_encryption_size (), msg->iv); 1549 t_decrypt (t, &res.target, &msg->target, ping_encryption_size (), msg->iv);
1550 if (0 != memcmp (&my_full_id, &res.target, sizeof (my_full_id))) 1550 if (0 != memcmp (&my_full_id, &res.target, sizeof (my_full_id)))
1551 { 1551 {
@@ -1576,7 +1576,7 @@ handle_pong (struct MeshTunnel3 *t,
1576{ 1576{
1577 uint32_t challenge; 1577 uint32_t challenge;
1578 1578
1579 LOG (GNUNET_ERROR_TYPE_INFO, "<= PONG for %s\n", GMT_2s (t)); 1579 LOG (GNUNET_ERROR_TYPE_INFO, "<=== PONG for %s\n", GMT_2s (t));
1580 if (GNUNET_SCHEDULER_NO_TASK == t->rekey_task) 1580 if (GNUNET_SCHEDULER_NO_TASK == t->rekey_task)
1581 { 1581 {
1582 GNUNET_STATISTICS_update (stats, "# duplicate PONG messages", 1, GNUNET_NO); 1582 GNUNET_STATISTICS_update (stats, "# duplicate PONG messages", 1, GNUNET_NO);
@@ -1619,7 +1619,7 @@ handle_decrypted (struct MeshTunnel3 *t,
1619 uint16_t type; 1619 uint16_t type;
1620 1620
1621 type = ntohs (msgh->type); 1621 type = ntohs (msgh->type);
1622 LOG (GNUNET_ERROR_TYPE_INFO, "<= %s on %s\n", GM_m2s (type), GMT_2s (t)); 1622 LOG (GNUNET_ERROR_TYPE_INFO, "<=== %s on %s\n", GM_m2s (type), GMT_2s (t));
1623 1623
1624 switch (type) 1624 switch (type)
1625 { 1625 {
diff --git a/src/mesh/mesh_common.c b/src/mesh/mesh_common.c
index d094734b9..242d9fab8 100644
--- a/src/mesh/mesh_common.c
+++ b/src/mesh/mesh_common.c
@@ -336,7 +336,7 @@ GM_m2s (uint16_t m)
336 sprintf(buf, "%u (UNKNOWN TYPE)", m); 336 sprintf(buf, "%u (UNKNOWN TYPE)", m);
337 return buf; 337 return buf;
338 } 338 }
339 sprintf(buf, "{%22s}", t); 339 sprintf(buf, "{%18s}", t);
340 return buf; 340 return buf;
341} 341}
342#else 342#else