diff options
author | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2020-11-04 15:00:34 +0100 |
---|---|---|
committer | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2020-11-04 16:28:36 +0100 |
commit | 51cb49b21dcad1a112ff25e62e5e67dbd28f33b8 (patch) | |
tree | 84c03bbc9de25f1a342a6b87df60f165812dedde /print-sctp.c | |
parent | 1a9542cfd1f59a329e8cb32fb1737e7c8a11ecd2 (diff) | |
download | tcpdump-51cb49b21dcad1a112ff25e62e5e67dbd28f33b8.tar.gz |
SCTP: Use %zu to print sizeof values
Use 'u' for an unsigned value.
Diffstat (limited to 'print-sctp.c')
-rw-r--r-- | print-sctp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/print-sctp.c b/print-sctp.c index b5923ea6..ad0f7851 100644 --- a/print-sctp.c +++ b/print-sctp.c @@ -467,8 +467,8 @@ sctp_print(netdissect_options *ndo, ndo->ndo_protocol = "sctp"; if (sctpPacketLength < sizeof(struct sctpHeader)) { - ND_PRINT("truncated-sctp - %ld bytes missing!", - (long)(sizeof(struct sctpHeader) - sctpPacketLength)); + ND_PRINT("truncated-sctp - %zu bytes missing!", + sizeof(struct sctpHeader) - sctpPacketLength); return; } sctpPktHdr = (const struct sctpHeader*) bp; |