diff options
author | Yi He <yi.he@arm.com> | 2018-07-16 13:52:00 +0800 |
---|---|---|
committer | Dave Barach <openvpp@barachs.net> | 2018-07-31 14:07:19 +0000 |
commit | d05ce97724ed8681e80c32a948564d0163994365 (patch) | |
tree | 91cff274f32ce27c9c2d0f3c02e2d55a4ea00734 /src/vppinfra/format.c | |
parent | 15c3a6ad8094aeec6bbb78845d25050aabb82f4d (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>
Diffstat (limited to 'src/vppinfra/format.c')
-rw-r--r-- | src/vppinfra/format.c | 11 |
1 files changed, 11 insertions, 0 deletions
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, ...) { |