From: "Tzvetomir Stoyanov (VMware)" <tz.stoyanov@gmail.com>
To: rostedt@goodmis.org
Cc: linux-trace-devel@vger.kernel.org
Subject: [PATCH] libtracefs: Suppress library warnings during unit test
Date: Thu, 8 Apr 2021 11:05:53 +0300 [thread overview]
Message-ID: <20210408080553.3129648-1-tz.stoyanov@gmail.com> (raw)
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
reply other threads:[~2021-04-08 8:05 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210408080553.3129648-1-tz.stoyanov@gmail.com \
--to=tz.stoyanov@gmail.com \
--cc=linux-trace-devel@vger.kernel.org \
--cc=rostedt@goodmis.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).