- use strings
authorBart Polot <bart@net.in.tum.de>
Thu, 9 Aug 2012 15:55:48 +0000 (15:55 +0000)
committerBart Polot <bart@net.in.tum.de>
Thu, 9 Aug 2012 15:55:48 +0000 (15:55 +0000)
src/mesh/mesh_api.c

index da233c00deaa614ba9a0c6b5711490cb5aa6f07c..6bdc2569508af09c37876b2aabb46e988428d5cf 100644 (file)
@@ -1187,8 +1187,8 @@ msg_received (void *cls, const struct GNUNET_MessageHeader *msg)
     reconnect (h);
     return;
   }
-  LOG (GNUNET_ERROR_TYPE_DEBUG, "received a message type %hu from MESH\n",
-       ntohs (msg->type));
+  LOG (GNUNET_ERROR_TYPE_DEBUG, "received a message type %s from MESH\n",
+       GNUNET_MESH_DEBUG_M2S (ntohs (msg->type)));
   switch (ntohs (msg->type))
   {
     /* Notify of a new incoming tunnel */
@@ -1217,7 +1217,7 @@ msg_received (void *cls, const struct GNUNET_MessageHeader *msg)
   default:
     /* We shouldn't get any other packages, log and ignore */
     LOG (GNUNET_ERROR_TYPE_WARNING,
-         "unsolicited message form service (type %d)\n",
+         "unsolicited message form service (type %hu)\n",
          ntohs (msg->type));
   }
   LOG (GNUNET_ERROR_TYPE_DEBUG, "message processed\n");