From 4985b99649ddceb0ed955eb8aaf2e02e72f0c536 Mon Sep 17 00:00:00 2001 From: Florian Grandel Date: Thu, 18 Jun 2015 03:17:34 +0200 Subject: [PATCH] tools/mgmt-tester: error message when unexp params 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 014543561..b5815140b 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; } -- 2.47.3