diff options
author | Florin Coras <fcoras@cisco.com> | 2018-08-01 17:24:08 -0700 |
---|---|---|
committer | Damjan Marion <dmarion@me.com> | 2018-08-02 20:12:00 +0000 |
commit | 9686eacfa4eb7ed136ab52e1db7c8586faba2318 (patch) | |
tree | 1295fa256bf2df08ecd9a196138648aadce2d0f5 /src | |
parent | c6c0d2a077a77a126d642ff12dd326222cf13a7a (diff) |
vcl: fix debug messages output before heap cfg
Change-Id: Ifaef7ab2bc2fd4f5b4822d894facbcae01849031
Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/vcl/vcl_cfg.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/vcl/vcl_cfg.c b/src/vcl/vcl_cfg.c index 6e6a0ac0da4..ba3e53e2253 100644 --- a/src/vcl/vcl_cfg.c +++ b/src/vcl/vcl_cfg.c @@ -501,14 +501,16 @@ vppcom_cfg (vppcom_cfg_t * vcl_cfg) { u32 tmp; if (sscanf (env_var_str, "%u", &tmp) != 1) - clib_warning ("VCL<%d>: WARNING: Invalid debug level specified " - "in the environment variable " VPPCOM_ENV_DEBUG - " (%s)!\n", getpid (), env_var_str); + { + VCL_CFG_DBG (0, "VCL<%d>: WARNING: Invalid debug level specified " + "in the environment variable " VPPCOM_ENV_DEBUG + " (%s)!\n", getpid (), env_var_str); + } else { vcm->debug = tmp; - VDBG (0, "VCL<%d>: configured VCL debug level (%u) from " - VPPCOM_ENV_DEBUG "!", getpid (), vcm->debug); + VCL_CFG_DBG (0, "VCL<%d>: configured VCL debug level (%u) from " + VPPCOM_ENV_DEBUG "!", getpid (), vcm->debug); } } conf_fname = getenv (VPPCOM_ENV_CONF); |