[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r22925 - gnunet/src/mesh
From: |
gnunet |
Subject: |
[GNUnet-SVN] r22925 - gnunet/src/mesh |
Date: |
Thu, 26 Jul 2012 17:30:10 +0200 |
Author: bartpolot
Date: 2012-07-26 17:30:10 +0200 (Thu, 26 Jul 2012)
New Revision: 22925
Modified:
gnunet/src/mesh/mesh_api.c
Log:
- more debug logging
Modified: gnunet/src/mesh/mesh_api.c
===================================================================
--- gnunet/src/mesh/mesh_api.c 2012-07-26 13:32:08 UTC (rev 22924)
+++ gnunet/src/mesh/mesh_api.c 2012-07-26 15:30:10 UTC (rev 22925)
@@ -1206,7 +1206,7 @@
h->th = NULL;
if ((0 == size) || (NULL == buf))
{
- LOG (GNUNET_ERROR_TYPE_DEBUG, "Received NULL callback\n");
+ LOG (GNUNET_ERROR_TYPE_DEBUG, "Received NULL send callback\n");
reconnect (h);
return 0;
}
@@ -1217,6 +1217,7 @@
t = th->tunnel;
if (GNUNET_YES == th_is_payload (th))
{
+ LOG (GNUNET_ERROR_TYPE_DEBUG, " payload\n");
if (t->max_pid < t->pid && ! PID_OVERFLOW (t->pid, t->max_pid)) {
/* This tunnel is not ready to transmit yet, try next message */
next = th->next;
@@ -1300,6 +1301,7 @@
else
{
struct GNUNET_MessageHeader *mh = (struct GNUNET_MessageHeader *) &th[1];
+
LOG (GNUNET_ERROR_TYPE_DEBUG, " mesh traffic, type %u\n",
ntohs (mh->type));
memcpy (cbuf, &th[1], th->size);
@@ -1319,10 +1321,15 @@
{
int request = GNUNET_NO;
+ LOG (GNUNET_ERROR_TYPE_DEBUG, " head not empty\n");
for (th = h->th_head; NULL != th; th = th->next)
{
struct GNUNET_MESH_Tunnel *t = th->tunnel;
+ LOG (GNUNET_ERROR_TYPE_DEBUG, " [%p] notify: %p, size %u\n",
+ th, th->notify, th->size);
+ LOG (GNUNET_ERROR_TYPE_DEBUG, " pid %u, max %u\n", t->pid, t->max_pid);
+
if (GNUNET_NO == th_is_payload (th) ||
(t->max_pid >= t->pid || PID_OVERFLOW (t->pid, t->max_pid)))
{
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r22925 - gnunet/src/mesh,
gnunet <=