diff options
author | Marcelo Ricardo Leitner <marcelo.leitner@gmail.com> | 2016-06-02 15:05:44 -0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-06-03 19:37:22 -0400 |
commit | 942b3235bf77e5600a05d6e85f0415bdeb8068bb (patch) | |
tree | 4e46ac2cabe45ba2b350e6bddfec2dc2093c5581 /net/sctp | |
parent | 90017accff61ae89283ad9a51f9ac46ca01633fb (diff) | |
download | linux-stable-942b3235bf77e5600a05d6e85f0415bdeb8068bb.tar.gz linux-stable-942b3235bf77e5600a05d6e85f0415bdeb8068bb.tar.bz2 linux-stable-942b3235bf77e5600a05d6e85f0415bdeb8068bb.zip |
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 <marcelo.leitner@gmail.com>
Tested-by: Xin Long <lucien.xin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sctp')
-rw-r--r-- | net/sctp/output.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/sctp/output.c b/net/sctp/output.c index 60499a69179d..90d2e125c2f5 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: |