diff options
author | Yi He <yi.he@arm.com> | 2018-07-16 13:52:00 +0800 |
---|---|---|
committer | Ed Warnicke <hagbard@gmail.com> | 2018-08-09 17:26:02 +0000 |
commit | 332cc5a60b250b46b13f3abf9cb075c222ff8ad9 (patch) | |
tree | edf2c2ea7b4264cb7f6c8631337f275d195bb40d /src/vppinfra | |
parent | 6c2dc9bab1c1fea05f05f30f30932659c8746797 (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)
Diffstat (limited to 'src/vppinfra')
-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, ...) { |