From: Tedd Ho-Jeong An <hj.tedd.an@gmail.com>
To: linux-bluetooth@vger.kernel.org
Subject: [PATCH V2 3/4] tools/mgmt-tester: Print hexdump if mgmt event parameters not match
Date: Tue, 25 May 2021 22:13:09 -0700 [thread overview]
Message-ID: <20210526051310.423630-3-hj.tedd.an@gmail.com> (raw)
In-Reply-To: <20210526051310.423630-1-hj.tedd.an@gmail.com>
From: Tedd Ho-Jeong An <tedd.an@intel.com>
This patch displays the hexdump of expected and received mgmt event
parameters.
---
tools/mgmt-tester.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/tools/mgmt-tester.c b/tools/mgmt-tester.c
index c9de770c1..767e010a6 100644
--- a/tools/mgmt-tester.c
+++ b/tools/mgmt-tester.c
@@ -6780,6 +6780,9 @@ static bool verify_alt_ev(const void *param, uint16_t length)
if (test->expect_alt_ev_param &&
memcmp(test->expect_alt_ev_param, param, length)) {
tester_warn("Event parameters do not match");
+ util_hexdump('>', param, length, print_debug, "");
+ util_hexdump('!', test->expect_alt_ev_param, length,
+ print_debug, "");
return false;
}
--
2.26.3
next prev parent reply other threads:[~2021-05-26 5:13 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-05-26 5:13 [PATCH V2 1/4] tools/btmgmt: Add device flags commands Tedd Ho-Jeong An
2021-05-26 5:13 ` [PATCH V2 2/4] lib: Align mgmt header with document Tedd Ho-Jeong An
2021-05-26 5:13 ` Tedd Ho-Jeong An [this message]
2021-05-26 5:13 ` [PATCH V2 4/4] tools/mgmt-tester: Add test cases for get/set device flags Tedd Ho-Jeong An
2021-05-26 5:44 ` [V2,1/4] tools/btmgmt: Add device flags commands bluez.test.bot
2021-05-26 21:35 ` Luiz Augusto von Dentz
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=20210526051310.423630-3-hj.tedd.an@gmail.com \
--to=hj.tedd.an@gmail.com \
--cc=linux-bluetooth@vger.kernel.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).