- Clean debug output
authorBart Polot <bart@net.in.tum.de>
Thu, 16 Aug 2012 17:03:19 +0000 (17:03 +0000)
committerBart Polot <bart@net.in.tum.de>
Thu, 16 Aug 2012 17:03:19 +0000 (17:03 +0000)
src/mesh/mesh_api.c

index d63ad315d1e35d1353a4fa89a7f2c352ae939580..eeee8d415f654478cbdf09609dbde67812d149bf 100644 (file)
@@ -1193,7 +1193,9 @@ msg_received (void *cls, const struct GNUNET_MessageHeader *msg)
     reconnect (h);
     return;
   }
-  LOG (GNUNET_ERROR_TYPE_DEBUG, "received a message: %s\n",
+  LOG (GNUNET_ERROR_TYPE_DEBUG, "\n",
+       GNUNET_MESH_DEBUG_M2S (ntohs (msg->type)));
+  LOG (GNUNET_ERROR_TYPE_DEBUG, "Received a message: %s\n",
        GNUNET_MESH_DEBUG_M2S (ntohs (msg->type)));
   switch (ntohs (msg->type))
   {