[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [gnunet] 07/11: - debug, indentation, legibility
From: |
gnunet |
Subject: |
[GNUnet-SVN] [gnunet] 07/11: - debug, indentation, legibility |
Date: |
Wed, 08 Feb 2017 19:44:35 +0100 |
This is an automated email from the git hooks/post-receive script.
bart-polot pushed a commit to branch master
in repository gnunet.
commit 8508f1ae2108e7b518ae3191b477a2b3b75cd02a
Author: Bart Polot <address@hidden>
AuthorDate: Wed Feb 8 17:28:19 2017 +0100
- debug, indentation, legibility
---
src/cadet/cadet_api.c | 16 ++++++++++------
1 file changed, 10 insertions(+), 6 deletions(-)
diff --git a/src/cadet/cadet_api.c b/src/cadet/cadet_api.c
index 2de8106a0..f55911afa 100644
--- a/src/cadet/cadet_api.c
+++ b/src/cadet/cadet_api.c
@@ -906,10 +906,10 @@ handle_channel_created (void *cls,
/** @deprecated */
/* Old style API */
ch->ctx = port->handler (port->cls,
- ch,
- &msg->peer,
- port->hash,
- ch->options);
+ ch,
+ &msg->peer,
+ port->hash,
+ ch->options);
} else {
/* MQ API */
GNUNET_assert (NULL != port->connects);
@@ -1012,6 +1012,7 @@ handle_local_data (void *cls,
const struct GNUNET_CADET_MessageHandler *handler;
struct GNUNET_CADET_Channel *ch;
uint16_t type;
+ int fwd;
ch = retrieve_channel (h,
message->ccn);
@@ -1024,16 +1025,19 @@ handle_local_data (void *cls,
payload = (struct GNUNET_MessageHeader *) &message[1];
type = ntohs (payload->type);
+ fwd = ntohl (ch->ccn.channel_of_client) >= GNUNET_CADET_LOCAL_CHANNEL_ID_CLI;
LOG (GNUNET_ERROR_TYPE_DEBUG,
"Got a %s data on channel %s [%X] of type %s (%u)\n",
- GC_f2s (ntohl (ch->ccn.channel_of_client) >=
- GNUNET_CADET_LOCAL_CHANNEL_ID_CLI),
+ GC_f2s (fwd),
GNUNET_i2s (GNUNET_PEER_resolve2 (ch->peer)),
ntohl (message->ccn.channel_of_client),
GC_m2s (type),
type);
if (NULL != ch->mq)
{
+ LOG (GNUNET_ERROR_TYPE_DEBUG,
+ "injecting msg %s into mq\n",
+ GC_m2s (ntohs (payload->type)));
GNUNET_MQ_inject_message (ch->mq, payload);
return;
}
--
To stop receiving notification emails like this one, please contact
address@hidden
- [GNUnet-SVN] [gnunet] branch master updated (d00b72f57 -> a03d291e3), gnunet, 2017/02/08
- [GNUnet-SVN] [gnunet] 03/11: Merge branch 'master' of git+ssh://gnunet.org/gnunet, gnunet, 2017/02/08
- [GNUnet-SVN] [gnunet] 04/11: - doxygen, debug text, gnunet, 2017/02/08
- [GNUnet-SVN] [gnunet] 01/11: Implement data ack in CADET MQ API, gnunet, 2017/02/08
- [GNUnet-SVN] [gnunet] 07/11: - debug, indentation, legibility,
gnunet <=
- [GNUnet-SVN] [gnunet] 05/11: - fix assertion condition, gnunet, 2017/02/08
- [GNUnet-SVN] [gnunet] 06/11: fix cadet mq api, use proper function arguments, gnunet, 2017/02/08
- [GNUnet-SVN] [gnunet] 02/11: Only call window_size on incrementing size, allow ACK+1 messages to be taken, gnunet, 2017/02/08
- [GNUnet-SVN] [gnunet] 08/11: - code/debug format, gnunet, 2017/02/08
- [GNUnet-SVN] [gnunet] 09/11: - adjust FWD/BCK to new channel numbering, gnunet, 2017/02/08
- [GNUnet-SVN] [gnunet] 10/11: Fix open port, copy handlers for use on incoming channels, gnunet, 2017/02/08
- [GNUnet-SVN] [gnunet] 11/11: Add mq test, gnunet, 2017/02/08