gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r35192 - gnunet/src/ats


From: gnunet
Subject: [GNUnet-SVN] r35192 - gnunet/src/ats
Date: Mon, 9 Feb 2015 15:27:30 +0100

Author: grothoff
Date: 2015-02-09 15:27:29 +0100 (Mon, 09 Feb 2015)
New Revision: 35192

Modified:
   gnunet/src/ats/gnunet-service-ats.c
Log:
-better debug output, indentation

Modified: gnunet/src/ats/gnunet-service-ats.c
===================================================================
--- gnunet/src/ats/gnunet-service-ats.c 2015-02-09 12:17:18 UTC (rev 35191)
+++ gnunet/src/ats/gnunet-service-ats.c 2015-02-09 14:27:29 UTC (rev 35192)
@@ -65,34 +65,39 @@
       (const struct ClientStartMessage *) message;
   enum StartFlag flag;
 
+  flag = ntohl (msg->start_flag);
   GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
-              "Received `%s' message\n",
-              "ATS_START");
-  flag = ntohl (msg->start_flag);
+              "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);
 }
 
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]