fix the warning for Mac OS X

This commit is contained in:
Sukchan Lee 2018-02-14 10:22:36 +09:00
parent 730053cef4
commit 536138457e
1 changed files with 12 additions and 1 deletions

View File

@ -396,8 +396,9 @@ static int s1ap_usrsctp_recv_handler(struct socket *sock,
case SCTP_PEER_ADDR_CHANGE:
break;
case SCTP_SEND_FAILED :
d_error("SCTP_SEND_FAILED"
d_error("flags:0x%x - SCTP_SEND_FAILED"
"(type:0x%x, flags:0x%x, error:0x%x)\n",
flags,
not->sn_send_failed_event.ssfe_type,
not->sn_send_failed_event.ssfe_flags,
not->sn_send_failed_event.ssfe_error);
@ -416,6 +417,16 @@ static int s1ap_usrsctp_recv_handler(struct socket *sock,
}
break;
}
case SCTP_REMOTE_ERROR:
{
d_warn("flags:0x%x - SCTP_REMOTE_ERROR"
"(type:0x%x, flags:0x%x, error:0x%x)\n",
flags,
not->sn_remote_error.sre_type,
not->sn_remote_error.sre_flags,
not->sn_remote_error.sre_error);
break;
}
default :
d_error("Discarding event with unknown "
"flags = 0x%x, type 0x%x",