projects
/
oweals
/
gnunet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
ef70fb5
)
-fix endianess before printing DEBUG message
author
Christian Grothoff
<christian@grothoff.org>
Wed, 18 Dec 2013 10:31:31 +0000
(10:31 +0000)
committer
Christian Grothoff
<christian@grothoff.org>
Wed, 18 Dec 2013 10:31:31 +0000
(10:31 +0000)
src/dv/dv_api.c
patch
|
blob
|
history
diff --git
a/src/dv/dv_api.c
b/src/dv/dv_api.c
index e726d9d9038726879cf6c0e77b01c1ad9d89d2dd..4cd072eb7f223bf985bac1157cc6b401ac5c67ce 100644
(file)
--- a/
src/dv/dv_api.c
+++ b/
src/dv/dv_api.c
@@
-330,8
+330,9
@@
handle_message_receipt (void *cls,
return;
}
LOG (GNUNET_ERROR_TYPE_DEBUG,
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:
switch (ntohs (msg->type))
{
case GNUNET_MESSAGE_TYPE_DV_CONNECT:
@@
-639,8
+640,8
@@
GNUNET_DV_send (struct GNUNET_DV_ServiceHandle *sh,
}
LOG (GNUNET_ERROR_TYPE_DEBUG,
"Asked to send %u bytes of type %u to %s\n",
}
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);
GNUNET_i2s (target));
peer = GNUNET_CONTAINER_multipeermap_get (sh->peers,
target);