]> The Tcpdump Group git mirrors - tcpdump/commitdiff
MPTCP: Use %u for an unsigned value
authorFrancois-Xavier Le Bail <[email protected]>
Tue, 6 Oct 2020 15:32:28 +0000 (17:32 +0200)
committerFrancois-Xavier Le Bail <[email protected]>
Tue, 6 Oct 2020 15:32:28 +0000 (17:32 +0200)
print-mptcp.c

index 77c26dc23ae0474992d7b6372a519e2aa5b30715..69240085015c76ed8534f22267978597067899f0 100644 (file)
@@ -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;
         }