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>
This commit is contained in:
Yi He
2018-07-16 13:52:00 +08:00
committed by Dave Barach
parent 15c3a6ad80
commit d05ce97724
2 changed files with 11 additions and 11 deletions

View File

@ -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)
{

View File

@ -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, ...)
{