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:
@ -26,17 +26,6 @@ vat_suspend (vlib_main_t * vm, f64 interval)
|
|||||||
/* do nothing in the standalone version, just return */
|
/* 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
|
int
|
||||||
connect_to_vpe (char *name)
|
connect_to_vpe (char *name)
|
||||||
{
|
{
|
||||||
|
@ -463,6 +463,17 @@ fformat (FILE * f, char *fmt, ...)
|
|||||||
}
|
}
|
||||||
|
|
||||||
#ifdef CLIB_UNIX
|
#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
|
word
|
||||||
fdformat (int fd, char *fmt, ...)
|
fdformat (int fd, char *fmt, ...)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user