The tester already issues debug messages for unexpected HCI commands but not for unexpected mgmt command return values. To facilitate test debugging this patch adds a debug message for unexpected mgmt command return values, too. --- tools/mgmt-tester.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/mgmt-tester.c b/tools/mgmt-tester.c index 0145435..b581514 100644 --- a/tools/mgmt-tester.c +++ b/tools/mgmt-tester.c @@ -5389,12 +5389,14 @@ static void command_generic_callback(uint8_t status, uint16_t length, expect_param = test->expect_func(&expect_len); if (length != expect_len) { + tester_warn("Invalid cmd response parameter size"); tester_test_failed(); return; } if (expect_param && expect_len > 0 && memcmp(param, expect_param, length)) { + tester_warn("Unexpected cmd response parameter value"); tester_test_failed(); return; } -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html