vlib: add a "vpplog" debug CLI 27/31327/2
authorDave Barach <dave@barachs.net>
Wed, 17 Feb 2021 15:25:18 +0000 (10:25 -0500)
committerFlorin Coras <florin.coras@gmail.com>
Thu, 18 Feb 2021 15:42:03 +0000 (15:42 +0000)
commit3d0e0d155de32eb215a7ca675dfca5a28f8837cc
tree9e3292061613203a4e21a955f90951ad689dab1e
parent8fb22fdade3633f1116c44b913934fcffe0d861b
vlib: add a "vpplog" debug CLI

To add arbitrary text to the vlib log. Combines nicely with
comment/uncomment and the macro expander:

define MY_FEATURE uncomment   # or comment
...
$(MY_FEATURE) { vpplog { My feature was enabled } }

Type: improvement

Signed-off-by: Dave Barach <dave@barachs.net>
Change-Id: Ia019f0a8fa670d8593ae01595f5ef410796e5b1c
src/vlib/cli.c
src/vlib/cli.h