Message* ackedMessage;
AnalysisDataLinReg* analysisData;
- g_debug("Synchronization calculation, ");
- g_debug("%d acked packets - using last one, ",
+ g_debug("Synchronization calculation, "
+ "%d acked packets - using last one,",
g_queue_get_length(exchange->acks));
analysisData= (AnalysisDataLinReg*) syncState->analysisData;
pow(fit->sd, 2) * fit->st2 - 2 * fit->st * fit->sd
* fit->std) / delta) / (fit->n - 2));
- g_debug("[i= %u j= %u]\n", i, j);
- g_debug("n= %d st= %g st2= %g sd= %g sd2= %g std= %g\n",
+ g_debug("[i= %u j= %u]", i, j);
+ g_debug("n= %d st= %g st2= %g sd= %g sd2= %g std= %g",
fit->n, fit->st, fit->st2, fit->sd, fit->sd2, fit->std);
- g_debug("xij= %g d0ij= %g e= %g\n", fit->x, fit->d0, fit->e);
- g_debug("(xji= %g d0ji= %g)\n", -fit->x / (1 + fit->x),
+ g_debug("xij= %g d0ij= %g e= %g", fit->x, fit->d0, fit->e);
+ g_debug("(xji= %g d0ji= %g)", -fit->x / (1 + fit->x),
-fit->d0 / (1 + fit->x));
}
}
GList* result;
// Perform shortest path search
- g_debug("shortest path trace %d\ndistances: ", i);
+ g_debug("shortest path trace %d, distances: ", i);
shortestPath(analysisData->fitArray, i, syncState->traceNb, distances,
previousVertex);
{
g_debug("%g, ", distances[j]);
}
- g_debug("\npreviousVertex: ");
+ g_debug("previousVertex: ");
for (j= 0; j < syncState->traceNb; j++)
{
g_debug("%u, ", previousVertex[j]);
}
- g_debug("\n");
// Group in graphs nodes that have exchanges
errorSum= sumDistances(distances, syncState->traceNb);
{
Graph* graph;
- g_debug("found graph\n");
+ g_debug("found graph");
graph= (Graph*) result->data;
if (errorSum < graph->errorSum)
{
- g_debug("adding to graph\n");
+ g_debug("adding to graph");
graph->errorSum= errorSum;
free(graph->previousVertex);
graph->previousVertex= previousVertex;
{
Graph* newGraph;
- g_debug("creating new graph\n");
+ g_debug("creating new graph");
newGraph= malloc(sizeof(Graph));
newGraph->errorSum= errorSum;
newGraph->previousVertex= previousVertex;
visited[i]= false;
fit= &fitArray[traceNum][i];
- g_debug("fitArray[traceNum= %u][i= %u]->n = %u\n", traceNum, i, fit->n);
+ g_debug("fitArray[traceNum= %u][i= %u]->n = %u", traceNum, i, fit->n);
if (fit->n > 0)
{
distances[i]= fit->e;
{
g_debug("(%d, %u, %g), ", visited[j], previousVertex[j], distances[j]);
}
- g_debug("\n");
for (i= 0; i < traceNb - 2; i++)
{
}
}
- g_debug("v= %u dvMin= %g\n", v, dvMin);
+ g_debug("v= %u dvMin= %g", v, dvMin);
if (dvMin != INFINITY)
{
{
g_debug("(%d, %u, %g), ", visited[j], previousVertex[j], distances[j]);
}
- g_debug("\n");
}
free(visited);
lttv_traceset_context_compute_time_span(processingData->traceSetContext,
&processingData->traceSetContext->time_span);
- g_debug("traceset start %ld.%09ld end %ld.%09ld\n",
+ g_debug("traceset start %ld.%09ld end %ld.%09ld",
processingData->traceSetContext->time_span.start_time.tv_sec,
processingData->traceSetContext->time_span.start_time.tv_nsec,
processingData->traceSetContext->time_span.end_time.tv_sec,
for(i= 0; i < syncState->traceNb; i++)
{
- g_debug("Cleaning up pendingRecv list\n");
+ g_debug("Cleaning up pendingRecv list");
g_hash_table_destroy(processingData->pendingRecv[i]);
}
free(processingData->pendingRecv);
g_assert(g_hash_table_lookup_extended(processingData->traceNumTable,
trace, NULL, (gpointer*) &traceNum));
- g_debug("XXXX process event: time: %ld.%09ld trace: %ld (%p) name: %s ",
+ g_debug("Process event: time: %ld.%09ld trace: %ld (%p) name: %s ",
time.tv_sec, time.tv_nsec, traceNum, trace,
g_quark_to_string(info->name));
syncState->matchingModule->matchEvent(syncState, outE);
- g_debug("Output event done\n");
+ g_debug("Output event done");
}
else if (info->name == LTT_EVENT_DEV_RECEIVE)
{
g_hash_table_replace(processingData->pendingRecv[traceNum], skb,
inE);
- g_debug("Adding inE %p for skb %p to pendingRecv\n", inE, skb);
- }
- else
- {
- g_debug("\n");
+ g_debug("Adding inE %p for skb %p to pendingRecv", inE, skb);
}
}
else if (info->name == LTT_EVENT_TCPV4_RCV_EXTENDED)
syncState->matchingModule->matchEvent(syncState, inE);
- g_debug("TCP input event %p for skb %p done\n", inE, skb);
+ g_debug("TCP input event %p for skb %p done", inE, skb);
}
}
else if (info->name == LTT_EVENT_UDPV4_RCV_EXTENDED)
syncState->matchingModule->matchEvent(syncState, inE);
- g_debug("UDP input event %p for skb %p done\n", inE, skb);
+ g_debug("UDP input event %p for skb %p done", inE, skb);
}
}
else