session: fix app name formatting 95/18695/3
authorFlorin Coras <fcoras@cisco.com>
Fri, 5 Apr 2019 05:31:50 +0000 (22:31 -0700)
committerDave Wallace <dwallacelf@gmail.com>
Fri, 5 Apr 2019 18:35:42 +0000 (18:35 +0000)
Change-Id: Iea88ce5f6628e131e507ba45a3dbb2de7e6c1498
Signed-off-by: Florin Coras <fcoras@cisco.com>
src/vnet/session/application.c

index 91e800d..8a7745e 100644 (file)
@@ -1421,12 +1421,12 @@ format_application (u8 * s, va_list * args)
   props = application_segment_manager_properties (app);
   if (!verbose)
     {
-      s = format (s, "%-10u%-20s%-40s", app->app_index, app_name,
+      s = format (s, "%-10u%-20v%-40s", app->app_index, app_name,
                  app_ns_name);
       return s;
     }
 
-  s = format (s, "app-name %s app-index %u ns-index %u seg-size %U\n",
+  s = format (s, "app-name %v app-index %u ns-index %u seg-size %U\n",
              app_name, app->app_index, app->ns_index,
              format_memory_size, props->add_segment_size);
   s = format (s, "rx-fifo-size %U tx-fifo-size %U workers:\n",