Commit 69808152 authored by Aurelio Colosimo's avatar Aurelio Colosimo

fix diagnostic messages in msg_issue_xxx

parent 647e1b69
......@@ -570,12 +570,13 @@ void msg_unpack_pdelay_resp_followup(void *buf,
}
#define MSG_SEND_AND_RET(x,y,z)\
if (pp_send_packet(ppi, ppi->buf_out, PP_## x ##_LENGTH, PP_NP_## y, z)\
< PP_## x ##_LENGTH) {\
PP_PRINTF("## x ## Message can't be sent -> FAULTY state!");\
if (pp_send_packet(ppi, ppi->buf_out, PP_## x ##_LENGTH, PP_NP_##y ,\
z) < PP_## x ##_LENGTH) {\
PP_PRINTF("%d Message can't be sent -> FAULTY state!\n",\
PPM_##x);\
return -1;\
}\
PP_VPRINTF("## x ## Message sent");\
PP_VPRINTF("%d Message sent\n", PPM_##x);\
ppi->sent_seq_id[PPM_## x]++;\
return 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment