summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYi He <yi.he@arm.com>2018-07-16 13:52:00 +0800
committerEd Warnicke <hagbard@gmail.com>2018-08-09 17:26:02 +0000
commit332cc5a60b250b46b13f3abf9cb075c222ff8ad9 (patch)
treeedf2c2ea7b4264cb7f6c8631337f275d195bb40d
parent6c2dc9bab1c1fea05f05f30f30932659c8746797 (diff)
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 <yi.he@arm.com> (cherry picked from commit d05ce97724ed8681e80c32a948564d0163994365)
-rw-r--r--src/vat/main.c11
-rw-r--r--src/vppinfra/format.c11
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, ...)
{