[PATCH] libtracefs: Suppress library warnings during unit test

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Implemented dummy tep_vwarning() function to suppress warnings from the
trace libraries during the unit test.

Signed-off-by: Tzvetomir Stoyanov (VMware) <tz.stoyanov@xxxxxxxxx>
---
 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




[Index of Archives]     [Linux USB Development]     [Linux USB Development]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux