Commit 403307c4 authored by David S. Miller's avatar David S. Miller

net/sctp/sctp_socket.c: Fix printf string for size_t.

- also fix sctp.h declaration type of sctp_get_port
parent 3ec411f9
......@@ -123,7 +123,7 @@ extern int sctp_copy_local_addr_list(sctp_protocol_t *, sctp_bind_addr_t *,
*/
extern int sctp_backlog_rcv(struct sock *sk, struct sk_buff *skb);
extern int sctp_inet_listen(struct socket *sock, int backlog);
extern int sctp_get_port(struct sock *sk, unsigned short snum);
extern long sctp_get_port(struct sock *sk, unsigned short snum);
extern void sctp_write_space(struct sock *sk);
extern unsigned int sctp_poll(struct file *file, struct socket *sock,
poll_table *wait);
......
......@@ -800,7 +800,7 @@ int sctp_sendmsg(struct sock *sk, struct msghdr *msg, int size)
associd = sinfo->sinfo_assoc_id;
}
SCTP_DEBUG_PRINTK("msg_len: %d, sinfo_flags: 0x%x\n",
SCTP_DEBUG_PRINTK("msg_len: %Zd, sinfo_flags: 0x%x\n",
msg_len, sinfo_flags);
/* If MSG_EOF|MSG_ABORT is set, no data can be sent. Disallow
......
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