From: Marcelo Ricardo Leitner Date: Thu, 2 Jun 2016 18:05:44 +0000 (-0300) Subject: sctp: improve debug message to also log curr pkt and new chunk size X-Git-Tag: kvm-4.8-3~101^2~439^2 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=942b3235bf77e5600a05d6e85f0415bdeb8068bb;p=users%2Fdwmw2%2Flinux.git sctp: improve debug message to also log curr pkt and new chunk size This is useful for debugging packet sizes. Signed-off-by: Marcelo Ricardo Leitner Tested-by: Xin Long Signed-off-by: David S. Miller --- diff --git a/net/sctp/output.c b/net/sctp/output.c index 60499a69179d2..90d2e125c2f5e 100644 --- a/net/sctp/output.c +++ b/net/sctp/output.c @@ -182,7 +182,8 @@ sctp_xmit_t sctp_packet_transmit_chunk(struct sctp_packet *packet, sctp_xmit_t retval; int error = 0; - pr_debug("%s: packet:%p chunk:%p\n", __func__, packet, chunk); + pr_debug("%s: packet:%p size:%lu chunk:%p size:%d\n", __func__, + packet, packet->size, chunk, chunk->skb ? chunk->skb->len : -1); switch ((retval = (sctp_packet_append_chunk(packet, chunk)))) { case SCTP_XMIT_PMTU_FULL: