aboutsummaryrefslogtreecommitdiffstats
path: root/src/vat/api_format.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/vat/api_format.c')
-rw-r--r--src/vat/api_format.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/vat/api_format.c b/src/vat/api_format.c
index be074bec615..60d66be368d 100644
--- a/src/vat/api_format.c
+++ b/src/vat/api_format.c
@@ -73,7 +73,11 @@
#undef vl_endianfun
/* instantiate all the print functions we know about */
+#if VPP_API_TEST_BUILTIN == 0
#define vl_print(handle, ...)
+#else
+#define vl_print(handle, ...) vlib_cli_output (handle, __VA_ARGS__)
+#endif
#define vl_printfun
#include <vpp/api/vpe_all_api_h.h>
#undef vl_printfun