diff options
author | Florin Coras <fcoras@cisco.com> | 2018-05-11 09:20:12 -0700 |
---|---|---|
committer | Dave Barach <openvpp@barachs.net> | 2018-05-13 13:20:53 +0000 |
commit | 078371e32c41c6c63d8e49964d2046a5dd90de48 (patch) | |
tree | 1b0e486ad66678ee53628c9605704076210dac35 /src/vnet/session/application.c | |
parent | f08f26d1cfc470edcb25a2c9c714858b0978ed34 (diff) |
session: improve app verbose format function
Change-Id: Idae4ecb60351f2e74bad2f2a33c073de8412fcb0
Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'src/vnet/session/application.c')
-rw-r--r-- | src/vnet/session/application.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/vnet/session/application.c b/src/vnet/session/application.c index 68bbd59098e..60019dd7961 100644 --- a/src/vnet/session/application.c +++ b/src/vnet/session/application.c @@ -1437,8 +1437,8 @@ format_application (u8 * s, va_list * args) { if (verbose) s = format (s, "%-10s%-20s%-15s%-15s%-15s%-15s%-15s", "Index", "Name", - "API Client", "Namespace", "Add seg size", "Rx fifo size", - "Tx fifo size"); + "API Client", "Namespace", "Add seg size", "Rx-f size", + "Tx-f size"); else s = format (s, "%-10s%-20s%-15s%-40s", "Index", "Name", "API Client", "Namespace"); @@ -1449,12 +1449,13 @@ format_application (u8 * s, va_list * args) app_ns_name = app_namespace_id_from_index (app->ns_index); props = application_segment_manager_properties (app); if (verbose) - s = format (s, "%-10d%-20s%-15d%-15d%-15d%-15d%-15d", app->index, + s = format (s, "%-10u%-20s%-15d%-15u%-15U%-15U%-15U", app->index, app_name, app->api_client_index, app->ns_index, - props->add_segment_size, props->rx_fifo_size, + format_memory_size, props->add_segment_size, + format_memory_size, props->rx_fifo_size, format_memory_size, props->tx_fifo_size); else - s = format (s, "%-10d%-20s%-15d%-40s", app->index, app_name, + s = format (s, "%-10u%-20s%-15d%-40s", app->index, app_name, app->api_client_index, app_ns_name); return s; } |