From 749f460beff38e234788121cf36f6d7945bf6586 Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Tue, 3 Nov 2020 15:36:28 -0800 Subject: [PATCH] mgmt-tester: Print out the HCI received and expected cmd value This make it simpler to debug when the kernel has been updated and parameters no longer match: Signed-off-by: Anuj Jain Signed-off-by: Ayush Garg --- tools/mgmt-tester.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/mgmt-tester.c b/tools/mgmt-tester.c index 27a5f0b..4775fb1 100755 --- a/tools/mgmt-tester.c +++ b/tools/mgmt-tester.c @@ -6381,7 +6381,9 @@ static void command_hci_callback(uint16_t opcode, const void *param, } if (memcmp(param, expect_hci_param, length) != 0) { - tester_warn("Unexpected HCI command parameter value"); + tester_warn("Unexpected HCI command parameter value:"); + util_hexdump('>', param, length, print_debug, ""); + util_hexdump('!', expect_hci_param, length, print_debug, ""); tester_test_failed(); return; } -- 2.7.4