summaryrefslogtreecommitdiffstats
path: root/src/vnet
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2019-04-09 16:13:18 -0700
committerDave Wallace <dwallacelf@gmail.com>2019-04-10 15:58:27 +0000
commitbee9768bd41d52d80d8ee3a03a2b1c236da080b0 (patch)
treee8f428bc3e77eac28cfc564de2e194d4e5b3abe7 /src/vnet
parent7f9b7f9f492d1748d8ba025b3a713058fdb1943d (diff)
session: binary api app names as vectors
Change-Id: Iae358365de8ccbc0441b14f21ba6b365cbfec09a Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'src/vnet')
-rw-r--r--src/vnet/session/application.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vnet/session/application.c b/src/vnet/session/application.c
index 8a7745e0aca..82b6dfef534 100644
--- a/src/vnet/session/application.c
+++ b/src/vnet/session/application.c
@@ -821,11 +821,11 @@ app_name_from_api_index (u32 api_client_index)
vl_api_registration_t *regp;
regp = vl_api_client_index_to_registration (api_client_index);
if (regp)
- return format (0, "%s%c", regp->name, 0);
+ return format (0, "%s", regp->name);
clib_warning ("api client index %u does not have an api registration!",
api_client_index);
- return format (0, "unknown%c", 0);
+ return format (0, "unknown");
}
/**