#define GNUNET_log_from(kind, comp, ...) \
do \
{ \
- int log_line = __LINE__; \
static int log_call_enabled = GNUNET_LOG_CALL_STATUS; \
if ((GNUNET_EXTRA_LOGGING > 0) || \
((GNUNET_ERROR_TYPE_DEBUG & (kind)) == 0)) \
(comp), \
__FILE__, \
__FUNCTION__, \
- log_line); \
+ __LINE__); \
if (GN_UNLIKELY (GNUNET_get_log_skip () > 0)) \
{ \
GNUNET_log_skip (-1, GNUNET_NO); \
#define GNUNET_log(kind, ...) \
do \
{ \
- int log_line = __LINE__; \
static int log_call_enabled = GNUNET_LOG_CALL_STATUS; \
if ((GNUNET_EXTRA_LOGGING > 0) || \
((GNUNET_ERROR_TYPE_DEBUG & (kind)) == 0)) \
NULL, \
__FILE__, \
__FUNCTION__, \
- log_line); \
+ __LINE__); \
if (GN_UNLIKELY (GNUNET_get_log_skip () > 0)) \
{ \
GNUNET_log_skip (-1, GNUNET_NO); \
{
struct TransportClient *tc = pm->client;
struct VirtualLink *vl = pm->vl;
- struct GNUNET_MQ_Envelope *env;
- struct SendOkMessage *som;
if (NULL != tc)
{
+ struct GNUNET_MQ_Envelope *env;
+ struct SendOkMessage *som;
+
env = GNUNET_MQ_msg (som, GNUNET_MESSAGE_TYPE_TRANSPORT_SEND_OK);
som->peer = vl->target;
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
char *path;
path = GNUNET_strdup (GNUNET_i2s (&GST_my_identity));
- for (unsigned int i = 0; i <= num_hops; i++)
+ for (unsigned int j = 0; j <= num_hops; j++)
{
char *tmp;
- GNUNET_asprintf (&tmp, "%s-%s", path, GNUNET_i2s (&dhops[i]));
+ GNUNET_asprintf (&tmp, "%s-%s", path, GNUNET_i2s (&dhops[j]));
GNUNET_free (path);
path = tmp;
}
{
struct CommunicatorMessageContext *cmc = cls;
const struct TransportCummulativeAckPayloadP *ack;
- struct PendingAcknowledgement *pa;
unsigned int n_acks;
uint32_t ack_counter;
ack = (const struct TransportCummulativeAckPayloadP *) &ra[1];
for (unsigned int i = 0; i < n_acks; i++)
{
- pa =
+ struct PendingAcknowledgement *pa =
GNUNET_CONTAINER_multiuuidmap_get (pending_acks, &ack[i].ack_uuid.value);
if (NULL == pa)
{
if (0 == (bi_history & (1 << i)))
break; /* i-th hop not bi-directional, stop learning! */
- if (i == nhops)
+ if (i == nhops - 1)
{
path[i + 2] = dvl->initiator;
}
this queue */) )
{
frag = GNUNET_YES;
- relb = GNUNET_NO; /* if we fragment, we never also reliability box */
if (GNUNET_TRANSPORT_CC_RELIABLE == queue->tc->details.communicator.cc)
{
/* FIXME-FRAG-REL-UUID: we could use an optimized, shorter fragmentation
"Fragmentation failed queue %s to %s for <%llu>, trying again\n",
queue->address,
GNUNET_i2s (&n->pid),
- pm->logging_uuid);
+ sc.best->logging_uuid);
schedule_transmit_on_queue (queue, GNUNET_SCHEDULER_PRIORITY_DEFAULT);
+ return;
}
}
else if (GNUNET_YES == sc.relb)
"Reliability boxing failed queue %s to %s for <%llu>, trying again\n",
queue->address,
GNUNET_i2s (&n->pid),
- pm->logging_uuid);
+ sc.best->logging_uuid);
schedule_transmit_on_queue (queue, GNUNET_SCHEDULER_PRIORITY_DEFAULT);
return;
}