const struct mgmt_rp_read_version *rp = param;
tester_print("Read Version callback");
- tester_print(" Status: 0x%02x", status);
+ tester_print(" Status: %s (0x%02x)", mgmt_errstr(status), status);
if (status || !param) {
tester_pre_setup_failed();
const void *param, void *user_data)
{
tester_print("Read Commands callback");
- tester_print(" Status: 0x%02x", status);
+ tester_print(" Status: %s (0x%02x)", mgmt_errstr(status), status);
if (status || !param) {
tester_pre_setup_failed();
struct bthost *bthost;
tester_print("Read Info callback");
- tester_print(" Status: 0x%02x", status);
+ tester_print(" Status: %s (0x%02x)", mgmt_errstr(status), status);
if (status || !param) {
tester_pre_setup_failed();
struct test_data *data = tester_get_data();
tester_print("Read Index List callback");
- tester_print(" Status: 0x%02x", status);
+ tester_print(" Status: %s (0x%02x)", mgmt_errstr(status), status);
if (status || !param) {
tester_pre_setup_failed();
switch (opcode) {
case BT_HCI_CMD_WRITE_SCAN_ENABLE:
case BT_HCI_CMD_LE_SET_ADV_ENABLE:
- tester_print("Client set connectable status 0x%02x", status);
+ tester_print("Client set connectable: %s (0x%02x)",
+ mgmt_errstr(status), status);
if (!status && test->client_enable_ssp) {
bthost_write_ssp_mode(bthost, 0x01);
return;
}
break;
case BT_HCI_CMD_WRITE_SIMPLE_PAIRING_MODE:
- tester_print("Client enable SSP status 0x%02x", status);
+ tester_print("Client enable SSP: %s (0x%02x)",
+ mgmt_errstr(status), status);
break;
default:
return;
const void *expect_param = test->expect_param;
uint16_t expect_len = test->expect_len;
- tester_print("Command 0x%04x finished with status 0x%02x",
- test->send_opcode, status);
+ tester_print("%s (0x%04x) finished with status \"%s\" (0x%02x)",
+ mgmt_opstr(test->send_opcode), test->send_opcode,
+ mgmt_errstr(status), status);
if (status != test->expect_status) {
tester_test_failed();
return;
}
- tester_print("Sending command 0x%04x", test->send_opcode);
+ tester_print("Sending %s (0x%04x)", mgmt_opstr(test->send_opcode),
+ test->send_opcode);
if (test->send_func)
send_param = test->send_func(&send_len);
const void *send_param = test->send_param;
uint16_t send_len = test->send_len;
- tester_print("Sending command 0x%04x", test->send_opcode);
+ tester_print("Sending %s 0x%04x", mgmt_opstr(test->send_opcode),
+ test->send_opcode);
if (test->send_func)
send_param = test->send_func(&send_len);