gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r31515 - gnunet/src/dv


From: gnunet
Subject: [GNUnet-SVN] r31515 - gnunet/src/dv
Date: Wed, 18 Dec 2013 11:31:32 +0100

Author: grothoff
Date: 2013-12-18 11:31:31 +0100 (Wed, 18 Dec 2013)
New Revision: 31515

Modified:
   gnunet/src/dv/dv_api.c
Log:
-fix endianess before printing DEBUG message

Modified: gnunet/src/dv/dv_api.c
===================================================================
--- gnunet/src/dv/dv_api.c      2013-12-18 10:08:58 UTC (rev 31514)
+++ gnunet/src/dv/dv_api.c      2013-12-18 10:31:31 UTC (rev 31515)
@@ -330,8 +330,9 @@
     return;
   }
   LOG (GNUNET_ERROR_TYPE_DEBUG,
-       "Received message of type %u from DV service\n",
-       (unsigned int) msg->type);
+       "Received message of type %u with %u bytes from DV service\n",
+       (unsigned int) ntohs (msg->type),
+       (unsigned int) ntohs (msg->size));
   switch (ntohs (msg->type))
   {
   case GNUNET_MESSAGE_TYPE_DV_CONNECT:
@@ -639,8 +640,8 @@
   }
   LOG (GNUNET_ERROR_TYPE_DEBUG,
        "Asked to send %u bytes of type %u to %s\n",
-       (unsigned int) msg->size,
-       (unsigned int) msg->type,
+       (unsigned int) ntohs (msg->size),
+       (unsigned int) ntohs (msg->type),
        GNUNET_i2s (target));
   peer = GNUNET_CONTAINER_multipeermap_get (sh->peers,
                                             target);




reply via email to

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