aboutsummaryrefslogtreecommitdiff
path: root/src/ats
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2015-02-09 14:27:29 +0000
committerChristian Grothoff <christian@grothoff.org>2015-02-09 14:27:29 +0000
commit46f081c90862c65a9953fd5db24f20caf19678e5 (patch)
tree3b53496a91185c340a30463a6df8aa4c15795f1b /src/ats
parent5b23ce75b0196174e5ea189314a0e7301e5c388b (diff)
-better debug output, indentation
Diffstat (limited to 'src/ats')
-rw-r--r--src/ats/gnunet-service-ats.c21
1 files changed, 13 insertions, 8 deletions
diff --git a/src/ats/gnunet-service-ats.c b/src/ats/gnunet-service-ats.c
index d345a6b8ae..716bd63325 100644
--- a/src/ats/gnunet-service-ats.c
+++ b/src/ats/gnunet-service-ats.c
@@ -65,34 +65,39 @@ handle_ats_start (void *cls,
(const struct ClientStartMessage *) message;
enum StartFlag flag;
- GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
- "Received `%s' message\n",
- "ATS_START");
flag = ntohl (msg->start_flag);
+ GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
+ "Received ATS_START (%d) message\n",
+ (int) flag);
switch (flag)
{
case START_FLAG_SCHEDULING:
if (GNUNET_OK != GAS_scheduling_add_client (client))
{
- GNUNET_SERVER_receive_done (client, GNUNET_SYSERR);
+ GNUNET_SERVER_receive_done (client,
+ GNUNET_SYSERR);
return;
}
break;
case START_FLAG_PERFORMANCE_WITH_PIC:
- GAS_performance_add_client (client, flag);
+ GAS_performance_add_client (client,
+ flag);
break;
case START_FLAG_PERFORMANCE_NO_PIC:
- GAS_performance_add_client (client, flag);
+ GAS_performance_add_client (client,
+ flag);
break;
case START_FLAG_CONNECTION_SUGGESTION:
/* This client won't receive messages from us, no need to 'add' */
break;
default:
GNUNET_break (0);
- GNUNET_SERVER_receive_done (client, GNUNET_SYSERR);
+ GNUNET_SERVER_receive_done (client,
+ GNUNET_SYSERR);
return;
}
- GNUNET_SERVER_receive_done (client, GNUNET_OK);
+ GNUNET_SERVER_receive_done (client,
+ GNUNET_OK);
}