diff options
author | Gabor X Toth <*@tg-x.net> | 2013-11-09 23:12:19 +0000 |
---|---|---|
committer | Gabor X Toth <*@tg-x.net> | 2013-11-09 23:12:19 +0000 |
commit | 383a9603f7310b3156331a1ed9cc97cc6ed4d3a9 (patch) | |
tree | 1ac65b2635cb8cfcb8262c06120af15beaa30374 /src/psycstore | |
parent | ed4b19ee06f114648331fabd775c25c290dff481 (diff) | |
download | gnunet-383a9603f7310b3156331a1ed9cc97cc6ed4d3a9.tar.gz gnunet-383a9603f7310b3156331a1ed9cc97cc6ed4d3a9.zip |
log msg and comment fixes
Diffstat (limited to 'src/psycstore')
-rw-r--r-- | src/psycstore/psycstore_api.c | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/src/psycstore/psycstore_api.c b/src/psycstore/psycstore_api.c index 207a91e58..88ae1185b 100644 --- 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) | |||
254 | return; | 254 | return; |
255 | } | 255 | } |
256 | LOG (GNUNET_ERROR_TYPE_DEBUG, | 256 | LOG (GNUNET_ERROR_TYPE_DEBUG, |
257 | "Received message of type %d from PSYCstore service\n", | 257 | "Received message of type %d from PSYCstore service.\n", |
258 | ntohs (msg->type)); | 258 | ntohs (msg->type)); |
259 | uint16_t size = ntohs (msg->size); | 259 | uint16_t size = ntohs (msg->size); |
260 | uint16_t type = ntohs (msg->type); | 260 | uint16_t type = ntohs (msg->type); |
@@ -287,13 +287,16 @@ message_handler (void *cls, const struct GNUNET_MessageHeader *msg) | |||
287 | op = find_op_by_id (h, ntohl (opres->op_id)); | 287 | op = find_op_by_id (h, ntohl (opres->op_id)); |
288 | if (NULL == op) | 288 | if (NULL == op) |
289 | { | 289 | { |
290 | LOG (GNUNET_ERROR_TYPE_ERROR, | 290 | LOG (GNUNET_ERROR_TYPE_DEBUG, |
291 | "Received result message (type %d) " | 291 | "No callback registered for operation with ID %ld.\n", |
292 | "with an unknown operation ID: %ld\n", | ||
293 | type, ntohl (opres->op_id)); | 292 | type, ntohl (opres->op_id)); |
294 | } | 293 | } |
295 | else | 294 | else |
296 | { | 295 | { |
296 | LOG (GNUNET_ERROR_TYPE_DEBUG, | ||
297 | "Received result message (type %d) with operation ID: %ld\n", | ||
298 | type, op->op_id); | ||
299 | |||
297 | GNUNET_CONTAINER_DLL_remove (h->op_head, h->op_tail, op); | 300 | GNUNET_CONTAINER_DLL_remove (h->op_head, h->op_tail, op); |
298 | if (NULL != op->res_cb) | 301 | if (NULL != op->res_cb) |
299 | { | 302 | { |
@@ -338,10 +341,9 @@ message_handler (void *cls, const struct GNUNET_MessageHeader *msg) | |||
338 | op = find_op_by_id (h, ntohl (cres->op_id)); | 341 | op = find_op_by_id (h, ntohl (cres->op_id)); |
339 | if (NULL == op) | 342 | if (NULL == op) |
340 | { | 343 | { |
341 | LOG (GNUNET_ERROR_TYPE_ERROR, | 344 | LOG (GNUNET_ERROR_TYPE_DEBUG, |
342 | "Received counters result message (type %d) " | 345 | "No callback registered for operation with ID %ld.\n", |
343 | "with an unknown operation ID: %ld\n", | 346 | type, ntohl (cres->op_id)); |
344 | ntohl (cres->op_id)); | ||
345 | } | 347 | } |
346 | else | 348 | else |
347 | { | 349 | { |
@@ -387,9 +389,8 @@ message_handler (void *cls, const struct GNUNET_MessageHeader *msg) | |||
387 | op = find_op_by_id (h, ntohl (fres->op_id)); | 389 | op = find_op_by_id (h, ntohl (fres->op_id)); |
388 | if (NULL == op) | 390 | if (NULL == op) |
389 | { | 391 | { |
390 | LOG (GNUNET_ERROR_TYPE_ERROR, | 392 | LOG (GNUNET_ERROR_TYPE_DEBUG, |
391 | "Received fragment result message (type %d) " | 393 | "No callback registered for operation with ID %ld.\n", |
392 | "with an unknown operation ID: %ld\n", | ||
393 | type, ntohl (fres->op_id)); | 394 | type, ntohl (fres->op_id)); |
394 | } | 395 | } |
395 | else | 396 | else |
@@ -429,9 +430,8 @@ message_handler (void *cls, const struct GNUNET_MessageHeader *msg) | |||
429 | op = find_op_by_id (h, ntohl (sres->op_id)); | 430 | op = find_op_by_id (h, ntohl (sres->op_id)); |
430 | if (NULL == op) | 431 | if (NULL == op) |
431 | { | 432 | { |
432 | LOG (GNUNET_ERROR_TYPE_ERROR, | 433 | LOG (GNUNET_ERROR_TYPE_DEBUG, |
433 | "Received state result message (type %d) " | 434 | "No callback registered for operation with ID %ld.\n", |
434 | "with an unknown operation ID: %ld\n", | ||
435 | type, ntohl (sres->op_id)); | 435 | type, ntohl (sres->op_id)); |
436 | } | 436 | } |
437 | else | 437 | else |
@@ -479,8 +479,8 @@ send_next_message (void *cls, size_t size, void *buf) | |||
479 | return 0; | 479 | return 0; |
480 | } | 480 | } |
481 | LOG (GNUNET_ERROR_TYPE_DEBUG, | 481 | LOG (GNUNET_ERROR_TYPE_DEBUG, |
482 | "Sending message of type %d to PSYCstore service\n", | 482 | "Sending message of type %d to PSYCstore service. ID: %u\n", |
483 | ntohs (op->msg->type)); | 483 | ntohs (op->msg->type), op->op_id); |
484 | memcpy (buf, op->msg, ret); | 484 | memcpy (buf, op->msg, ret); |
485 | 485 | ||
486 | GNUNET_CONTAINER_DLL_remove (h->transmit_head, h->transmit_tail, op); | 486 | GNUNET_CONTAINER_DLL_remove (h->transmit_head, h->transmit_tail, op); |