tmp some debug prints...
FossilOrigin-Name: 311aafde6350c9399cda9e3296e4bdada1278afecb8a0405a85ca36468994e1b
This commit is contained in:
@ -110,7 +110,7 @@ int cw_send_response(struct conn *conn, uint8_t * rawmsg, int len)
|
||||
* was received or something else happened.
|
||||
* @param conn conection
|
||||
* @param rawmsg the received request message, which the response belongs to
|
||||
* @pqram result_code result code to send
|
||||
* @param result_code result code to send
|
||||
* @return 1
|
||||
*/
|
||||
int cw_send_error_response(struct conn *conn, uint8_t * rawmsg, uint32_t result_code)
|
||||
@ -332,16 +332,22 @@ static int process_elements(struct conn *conn, uint8_t * rawmsg, int len,
|
||||
int result_code = 0;
|
||||
if (afm->end) {
|
||||
result_code = afm->end(conn, afm, rawmsg, len, from);
|
||||
printf("result code comes from afm->end %d\n",result_code);
|
||||
|
||||
}
|
||||
|
||||
printf("Unrecognized = %d\n",unrecognized);
|
||||
|
||||
if (unrecognized){
|
||||
cw_dbg(DBG_RFC,"Message has %d unrecognized message elements.",unrecognized);
|
||||
if (!result_code) {
|
||||
printf("Seeting result code to unrec");
|
||||
result_code = CW_RESULT_UNRECOGNIZED_MESSAGE_ELEMENT;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
printf("The Result COde is here %d\n",result_code);
|
||||
/* if we've got a request message, we always have to send a response message */
|
||||
if (as.msg_id & 1) {
|
||||
if (result_code > 0) {
|
||||
|
Reference in New Issue
Block a user