Mercurial > hg > waaad
changeset 210:bc8b727ca94a
Fix error value && changed some trace levels
author | Sebastien Decugis <sdecugis@nict.go.jp> |
---|---|
date | Tue, 28 Oct 2008 16:11:26 +0900 |
parents | dd371bb37986 |
children | a812567e69cc |
files | waaad/Makefile.am waaad/message.c waaad/peer-cer_cea.c |
diffstat | 3 files changed, 5 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/waaad/Makefile.am Mon Oct 27 18:21:21 2008 +0900 +++ b/waaad/Makefile.am Tue Oct 28 16:11:26 2008 +0900 @@ -11,7 +11,7 @@ AM_CPPFLAGS += -DDEFAULT_CONF_FILE='"$(defconffile)"' # Flag to pass to have verbose SCTP operations, for development of this part -AM_CPPFLAGS += -DDEBUG_SCTP +# AM_CPPFLAGS += -DDEBUG_SCTP # bison outputs a .h file. Also useful to change automake behavior. AM_YFLAGS = -d
--- a/waaad/message.c Mon Oct 27 18:21:21 2008 +0900 +++ b/waaad/message.c Tue Oct 28 16:11:26 2008 +0900 @@ -1464,13 +1464,13 @@ /* Check the parameters */ CHECK_PARAMS( VALIDATE_OBJ(reference) ); - TRACE_DEBUG(FULL, "chaining(%p): nxt:%p prv:%p hea:%p top:%p", + TRACE_DEBUG(FCTS, "chaining(%p): nxt:%p prv:%p hea:%p top:%p", &_C(reference)->chaining, _C(reference)->chaining.next, _C(reference)->chaining.prev, _C(reference)->chaining.head, _C(reference)->chaining.o); - TRACE_DEBUG(FULL, "children(%p): nxt:%p prv:%p hea:%p top:%p", + TRACE_DEBUG(FCTS, "children(%p): nxt:%p prv:%p hea:%p top:%p", &_C(reference)->children, _C(reference)->children.next, _C(reference)->children.prev,
--- a/waaad/peer-cer_cea.c Mon Oct 27 18:21:21 2008 +0900 +++ b/waaad/peer-cer_cea.c Tue Oct 28 16:11:26 2008 +0900 @@ -1045,9 +1045,9 @@ } /* Ok, now check the error code */ - if ( errorcode != 2002 ) { + if ( errorcode != 2001 ) { /* We do not allow another error code here */ - log_error("Received CEA with Result-Code value %u from %s.", errorcode, peer->p_diamid); + log_error("Received CEA with Result-Code value %u from %s.\n", errorcode, peer->p_diamid); return EBADMSG; }