libtracefs: Suppress library warnings during unit test
PATCH 1/1 libtracefs: Suppress library warnings during unit test
Implemented dummy tep_vwarning() function to suppress warnings from the trace libraries during the unit test.
Signed-off-by Tzvetomir Stoyanov (VMware) <[email protected]>
--- utest/trace-utest.c | 5 +++++ 1 file changed, 5 insertions(+)
utest/trace-utest.c +5 -0
@@ -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 ]));
Signature · 1 line
2.30.2