diff options
author | Benoît Ganne <bganne@cisco.com> | 2019-07-12 11:53:07 +0200 |
---|---|---|
committer | Florin Coras <florin.coras@gmail.com> | 2019-07-12 16:21:44 +0000 |
commit | fe67afdd9386f09e07abfa2c1ba278f8bc549c32 (patch) | |
tree | 59bbee41820b4526ed43c63833e5d7cd453539aa | |
parent | 0af49a8fc94c57c71c97909fbb8b7acc403f980a (diff) |
vcl: fix namespace debug print
vcm->cfg.namespace_id is a vector and not a null-terminated C-string.
Type: fix
Fixes: 8af2054b78
Change-Id: I9324712f053066790a30fed617c9cac673f0fbd7
Signed-off-by: Benoît Ganne <bganne@cisco.com>
-rw-r--r-- | src/vcl/vcl_cfg.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/vcl/vcl_cfg.c b/src/vcl/vcl_cfg.c index 44ed49a3673..5d64515ce51 100644 --- a/src/vcl/vcl_cfg.c +++ b/src/vcl/vcl_cfg.c @@ -580,8 +580,7 @@ vppcom_cfg (vppcom_cfg_t * vcl_cfg) clib_memcpy (vcm->cfg.namespace_id, env_var_str, ns_id_vec_len); VCFG_DBG (0, "VCL<%d>: configured namespace_id (%s) from " - VPPCOM_ENV_APP_NAMESPACE_ID "!", getpid (), - (char *) vcm->cfg.namespace_id); + VPPCOM_ENV_APP_NAMESPACE_ID "!", getpid (), env_var_str); } env_var_str = getenv (VPPCOM_ENV_APP_NAMESPACE_SECRET); if (env_var_str) |