gnunet

Main GNUnet Logic
Log | Files | Refs | Submodules | README | LICENSE

commit 383a9603f7310b3156331a1ed9cc97cc6ed4d3a9
parent ed4b19ee06f114648331fabd775c25c290dff481
Author: Gabor X Toth <*@tg-x.net>
Date:   Sat,  9 Nov 2013 23:12:19 +0000

log msg and comment fixes

Diffstat:
Msrc/include/gnunet_protocols.h | 4++--
Msrc/multicast/multicast_api.c | 2+-
Msrc/psycstore/psycstore_api.c | 32++++++++++++++++----------------
3 files changed, 19 insertions(+), 19 deletions(-)

diff --git a/src/include/gnunet_protocols.h b/src/include/gnunet_protocols.h @@ -2172,12 +2172,12 @@ extern "C" #define GNUNET_MESSAGE_TYPE_CONVERSATION_CS_PHONE_REGISTER 730 /** - * Client -> Server meessage to reject/hangup a call + * Client -> Server message to reject/hangup a call */ #define GNUNET_MESSAGE_TYPE_CONVERSATION_CS_PHONE_PICK_UP 731 /** - * Client -> Server meessage to reject/hangup a call + * Client -> Server message to reject/hangup a call */ #define GNUNET_MESSAGE_TYPE_CONVERSATION_CS_PHONE_HANG_UP 732 diff --git a/src/multicast/multicast_api.c b/src/multicast/multicast_api.c @@ -383,7 +383,7 @@ schedule_origin_to_all (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc msg->message_id = mh->message_id; msg->group_generation = mh->group_generation; - /* FIXME: add fragment ID and signature in the service */ + /* FIXME: add fragment ID and signature in the service instead of here */ msg->fragment_id = orig->next_fragment_id++; msg->fragment_offset = mh->fragment_offset; mh->fragment_offset += buf_size; diff --git a/src/psycstore/psycstore_api.c b/src/psycstore/psycstore_api.c @@ -254,7 +254,7 @@ message_handler (void *cls, const struct GNUNET_MessageHeader *msg) return; } LOG (GNUNET_ERROR_TYPE_DEBUG, - "Received message of type %d from PSYCstore service\n", + "Received message of type %d from PSYCstore service.\n", ntohs (msg->type)); uint16_t size = ntohs (msg->size); uint16_t type = ntohs (msg->type); @@ -287,13 +287,16 @@ message_handler (void *cls, const struct GNUNET_MessageHeader *msg) op = find_op_by_id (h, ntohl (opres->op_id)); if (NULL == op) { - LOG (GNUNET_ERROR_TYPE_ERROR, - "Received result message (type %d) " - "with an unknown operation ID: %ld\n", + LOG (GNUNET_ERROR_TYPE_DEBUG, + "No callback registered for operation with ID %ld.\n", type, ntohl (opres->op_id)); } else { + LOG (GNUNET_ERROR_TYPE_DEBUG, + "Received result message (type %d) with operation ID: %ld\n", + type, op->op_id); + GNUNET_CONTAINER_DLL_remove (h->op_head, h->op_tail, op); if (NULL != op->res_cb) { @@ -338,10 +341,9 @@ message_handler (void *cls, const struct GNUNET_MessageHeader *msg) op = find_op_by_id (h, ntohl (cres->op_id)); if (NULL == op) { - LOG (GNUNET_ERROR_TYPE_ERROR, - "Received counters result message (type %d) " - "with an unknown operation ID: %ld\n", - ntohl (cres->op_id)); + LOG (GNUNET_ERROR_TYPE_DEBUG, + "No callback registered for operation with ID %ld.\n", + type, ntohl (cres->op_id)); } else { @@ -387,9 +389,8 @@ message_handler (void *cls, const struct GNUNET_MessageHeader *msg) op = find_op_by_id (h, ntohl (fres->op_id)); if (NULL == op) { - LOG (GNUNET_ERROR_TYPE_ERROR, - "Received fragment result message (type %d) " - "with an unknown operation ID: %ld\n", + LOG (GNUNET_ERROR_TYPE_DEBUG, + "No callback registered for operation with ID %ld.\n", type, ntohl (fres->op_id)); } else @@ -429,9 +430,8 @@ message_handler (void *cls, const struct GNUNET_MessageHeader *msg) op = find_op_by_id (h, ntohl (sres->op_id)); if (NULL == op) { - LOG (GNUNET_ERROR_TYPE_ERROR, - "Received state result message (type %d) " - "with an unknown operation ID: %ld\n", + LOG (GNUNET_ERROR_TYPE_DEBUG, + "No callback registered for operation with ID %ld.\n", type, ntohl (sres->op_id)); } else @@ -479,8 +479,8 @@ send_next_message (void *cls, size_t size, void *buf) return 0; } LOG (GNUNET_ERROR_TYPE_DEBUG, - "Sending message of type %d to PSYCstore service\n", - ntohs (op->msg->type)); + "Sending message of type %d to PSYCstore service. ID: %u\n", + ntohs (op->msg->type), op->op_id); memcpy (buf, op->msg, ret); GNUNET_CONTAINER_DLL_remove (h->transmit_head, h->transmit_tail, op);