summaryrefslogtreecommitdiff
path: root/print-mptcp.c
diff options
context:
space:
mode:
authorFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2020-10-06 17:32:28 +0200
committerFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2020-10-06 17:32:28 +0200
commit1c75daed55fcbff08e460b97605701ab0115f50b (patch)
tree158c2e5d0a2a1596629787b1390f90f99ec2677e /print-mptcp.c
parentc4d90f05e93824e718d4c71b7bda60fcbd4d9341 (diff)
downloadtcpdump-1c75daed55fcbff08e460b97605701ab0115f50b.tar.gz
MPTCP: Use %u for an unsigned value
Diffstat (limited to 'print-mptcp.c')
-rw-r--r--print-mptcp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/print-mptcp.c b/print-mptcp.c
index 77c26dc2..69240085 100644
--- a/print-mptcp.c
+++ b/print-mptcp.c
@@ -201,10 +201,10 @@ mp_capable_print(netdissect_options *ndo,
switch (MP_CAPABLE_OPT_VERSION(mpc->sub_ver)) {
case 0: /* fall through */
case 1:
- ND_PRINT(" v%d", MP_CAPABLE_OPT_VERSION(mpc->sub_ver));
+ ND_PRINT(" v%u", MP_CAPABLE_OPT_VERSION(mpc->sub_ver));
break;
default:
- ND_PRINT(" Unknown Version (%d)",
+ ND_PRINT(" Unknown Version (%u)",
MP_CAPABLE_OPT_VERSION(mpc->sub_ver));
return 1;
}