aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/session/application.c
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2017-11-21 22:13:03 -0800
committerDamjan Marion <dmarion.lists@gmail.com>2017-11-22 14:19:42 +0000
commit8f107b3686998f1e74353db0b7d0baa10ed4b754 (patch)
tree838650ae8a8f7bcb2d081b1d11367dee7cd7087c /src/vnet/session/application.c
parentb2e1fe9c4d6263ced0e37c78a7ba1837f5ff1c86 (diff)
session: more rules unit tests and cli improvements
Change-Id: I7e5545297ab9f2db8d7d07e44c744bdb0a0874a7 Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'src/vnet/session/application.c')
-rw-r--r--src/vnet/session/application.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/vnet/session/application.c b/src/vnet/session/application.c
index e7e580863ae..17770bec2e0 100644
--- a/src/vnet/session/application.c
+++ b/src/vnet/session/application.c
@@ -737,12 +737,12 @@ format_application (u8 * s, va_list * args)
{
if (verbose)
s = format (s, "%-10s%-20s%-15s%-15s%-15s%-15s%-15s", "Index", "Name",
- "Namespace", "API Client", "Add seg size", "Rx fifo size",
+ "API Client", "Namespace", "Add seg size", "Rx fifo size",
"Tx fifo size");
else
s =
- format (s, "%-10s%-20s%-15s%-20s", "Index", "Name", "Namespace",
- "API Client");
+ format (s, "%-10s%-20s%-15s%-40s", "Index", "Name", "API Client",
+ "Namespace");
return s;
}
@@ -751,13 +751,13 @@ format_application (u8 * s, va_list * args)
props = segment_manager_properties_get (app->sm_properties);
if (verbose)
s =
- format (s, "%-10d%-20s%-15s%-15d%-15d%-15d%-15d", app->index, app_name,
- app_ns_name, app->api_client_index,
+ format (s, "%-10d%-20s%-15d%-15d%-15d%-15d%-15d", app->index, app_name,
+ app->api_client_index, app->ns_index,
props->add_segment_size,
props->rx_fifo_size, props->tx_fifo_size);
else
- s = format (s, "%-10d%-20s%-15s%-20d", app->index, app_name, app_ns_name,
- app->api_client_index);
+ s = format (s, "%-10d%-20s%-15d%-40s", app->index, app_name,
+ app->api_client_index, app_ns_name);
return s;
}