diff options
author | Florin Coras <fcoras@cisco.com> | 2020-09-23 12:02:08 -0700 |
---|---|---|
committer | Florin Coras <florin.coras@gmail.com> | 2020-09-24 01:27:04 +0000 |
commit | 7bf6ed662630a26d164affdf8eb77fd2d72c8973 (patch) | |
tree | f9b7533a66567e5fc8a2dd8971fc93192b62bf61 /src/vnet/udp | |
parent | 1c0573da278bfdd899c78180444035c012f0368d (diff) |
session tcp udp tls quic: improve cli formatting
Type: improvement
Signed-off-by: Florin Coras <fcoras@cisco.com>
Change-Id: Iae5dbb8aaaf82d8e95c2ee8bbbe6844c9dd49f80
Diffstat (limited to 'src/vnet/udp')
-rw-r--r-- | src/vnet/udp/udp_cli.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/vnet/udp/udp_cli.c b/src/vnet/udp/udp_cli.c index 89cea689251..09e3a8a3d7f 100644 --- a/src/vnet/udp/udp_cli.c +++ b/src/vnet/udp/udp_cli.c @@ -14,6 +14,7 @@ */ #include <vnet/udp/udp.h> +#include <vnet/session/session_types.h> u8 * format_udp_connection_id (u8 * s, va_list * args) @@ -78,10 +79,10 @@ format_udp_connection (u8 * s, va_list * args) u32 verbose = va_arg (*args, u32); if (!uc) return s; - s = format (s, "%-50U", format_udp_connection_id, uc); + s = format (s, "%-" SESSION_CLI_ID_LEN "U", format_udp_connection_id, uc); if (verbose) { - s = format (s, "%-15s", + s = format (s, "%-" SESSION_CLI_STATE_LEN "s", (uc->flags & UDP_CONN_F_LISTEN) ? "LISTEN" : "OPENED", uc); if (verbose > 1) s = format (s, "\n%U", format_udp_vars, uc); |