diff mbox series

[v2,3/8] mgmt-tester: Print out the HCI received and expected cmd value

Message ID 20201104234228.2257427-3-luiz.dentz@gmail.com
State New
Headers show
Series None | expand

Commit Message

Luiz Augusto von Dentz Nov. 4, 2020, 11:42 p.m. UTC
From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>

This make it simpler to debug when the kernel has been updated and
parameters no longer match:
---
 tools/mgmt-tester.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/tools/mgmt-tester.c b/tools/mgmt-tester.c
index 27a5f0bab..4775fb18a 100644
--- 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;
 	}