* [PATCH] libtracefs: Suppress library warnings during unit test
@ 2021-04-08 8:05 Tzvetomir Stoyanov (VMware)
0 siblings, 0 replies; only message in thread
From: Tzvetomir Stoyanov (VMware) @ 2021-04-08 8:05 UTC (permalink / raw)
To: rostedt; +Cc: linux-trace-devel
Implemented dummy tep_vwarning() function to suppress warnings from the
trace libraries during the unit test.
Signed-off-by: Tzvetomir Stoyanov (VMware) <tz.stoyanov@gmail.com>
---
utest/trace-utest.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/utest/trace-utest.c b/utest/trace-utest.c
index 58d4d4e..ee11826 100644
--- a/utest/trace-utest.c
+++ b/utest/trace-utest.c
@@ -19,6 +19,11 @@ enum unit_tests {
RUN_ALL = 0xFFFF
};
+int tep_vwarning(const char *name, const char *fmt, va_list ap)
+{
+ return 0;
+}
+
static void print_help(char **argv)
{
printf("Usage: %s [OPTIONS]\n", basename(argv[0]));
--
2.30.2
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2021-04-08 8:05 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-08 8:05 [PATCH] libtracefs: Suppress library warnings during unit test Tzvetomir Stoyanov (VMware)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).