From 954e6d9ebe9e661cdf19e01562e0f5581c4e8713 Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Tue, 10 Nov 2020 18:15:06 -0800 Subject: [PATCH] mgmt-tester: Print unexpected command responses This prints the difference between the command response and the expected command response to make it easier to debug. --- tools/mgmt-tester.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/mgmt-tester.c b/tools/mgmt-tester.c index a5bfa1ce1..bb8eb578c 100644 --- a/tools/mgmt-tester.c +++ b/tools/mgmt-tester.c @@ -6315,6 +6315,9 @@ static void command_generic_callback(uint8_t status, uint16_t length, if (expect_param && expect_len > 0 && memcmp(param, expect_param, length)) { tester_warn("Unexpected cmd response parameter value"); + util_hexdump('>', param, length, print_debug, ""); + util_hexdump('!', expect_param, length, print_debug, + ""); tester_test_failed(); return; } -- 2.47.3