From 332cc5a60b250b46b13f3abf9cb075c222ff8ad9 Mon Sep 17 00:00:00 2001 From: Yi He Date: Mon, 16 Jul 2018 13:52:00 +0800 Subject: Fix undefined symbol: fformat_append_cr in vat plugins loading Several test plugins report undefined symbol while being loaded by load_one_vat_plugin. Fix this by adding VPP_API_TEST_BUILTIN into CFLAGS for building these plugins. Change-Id: I908720fd0d01da1ead30ba17027ba10358f6bdf1 Signed-off-by: Yi He (cherry picked from commit d05ce97724ed8681e80c32a948564d0163994365) --- src/vat/main.c | 11 ----------- src/vppinfra/format.c | 11 +++++++++++ 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/vat/main.c b/src/vat/main.c index 4357114376d..693e6323f20 100644 --- a/src/vat/main.c +++ b/src/vat/main.c @@ -26,17 +26,6 @@ vat_suspend (vlib_main_t * vm, f64 interval) /* do nothing in the standalone version, just return */ } -void -fformat_append_cr (FILE * ofp, const char *fmt, ...) -{ - va_list va; - - va_start (va, fmt); - (void) va_fformat (ofp, (char *) fmt, &va); - va_end (va); - fformat (ofp, "\n"); -} - int connect_to_vpe (char *name) { diff --git a/src/vppinfra/format.c b/src/vppinfra/format.c index 70292c048ec..e2fd84bb08b 100644 --- a/src/vppinfra/format.c +++ b/src/vppinfra/format.c @@ -463,6 +463,17 @@ fformat (FILE * f, char *fmt, ...) } #ifdef CLIB_UNIX +void +fformat_append_cr (FILE * ofp, const char *fmt, ...) +{ + va_list va; + + va_start (va, fmt); + (void) va_fformat (ofp, (char *) fmt, &va); + va_end (va); + fformat (ofp, "\n"); +} + word fdformat (int fd, char *fmt, ...) { -- cgit 1.2.3-korg