X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fvnet%2Ftcp%2Ftcp_format.c;h=a3245f2046a9cbc6fce5b409ca2a08d256b65f0c;hb=c5df8c71c;hp=3148fd406c9bb9c8f8baf083293f7808d17822c6;hpb=45d3496f3d86ee1a930ce0ffd6ca3d1730355eb8;p=vpp.git diff --git a/src/vnet/tcp/tcp_format.c b/src/vnet/tcp/tcp_format.c index 3148fd406c9..a3245f2046a 100644 --- a/src/vnet/tcp/tcp_format.c +++ b/src/vnet/tcp/tcp_format.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2015 Cisco and/or its affiliates. + * Copyright (c) 2015-2019 Cisco and/or its affiliates. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at: @@ -59,7 +59,7 @@ format_tcp_header (u8 * s, va_list * args) tcp_header_t *tcp = va_arg (*args, tcp_header_t *); u32 max_header_bytes = va_arg (*args, u32); u32 header_bytes; - uword indent; + u32 indent; /* Nothing to do. */ if (max_header_bytes < sizeof (tcp[0])) @@ -128,18 +128,6 @@ format_tcp_header (u8 * s, va_list * args) return s; } -u8 * -format_tcp_sacks (u8 * s, va_list * args) -{ - sack_block_t *sacks = va_arg (*args, sack_block_t *); - sack_block_t *block; - vec_foreach (block, sacks) - { - s = format (s, " start %u end %u\n", block->start, block->end); - } - return s; -} - /* * fd.io coding-style-patch-verification: ON *